PrimaryFeather / Sparrow-Framework

The Open Source Game Engine for iOS
http://www.sparrow-framework.org
Other
538 stars 173 forks source link

Resource loading within Unit Tests not possible #1007

Closed PrimaryFeather closed 13 years ago

PrimaryFeather commented 13 years ago

When you load a resource (textures, sounds, etc.) in a unit test, Sparrow wants to load it from the wrong path.

The detailed description about the problem, and a working solution, can be found here.

It should be evaluated if the proposed solution can be added to the Sparrow core, or if there are alternatives.

PrimaryFeather commented 13 years ago

added [NSBundle appBundle] extension method

This method is now used throughout the framework instead of [NSBundle mainBundle]. That way, unit tests will find their resource files, too.

(closed by 241df5d39c04f379c314)