On 14 Jul 2011, at 2:11 AM, Wilker wrote:

> I'm trying to do some tests here, but in case my tests have some fixture
> files (video files), I added them to a group Fixtures on Test target, they
> are also already on Copy Resources Bundle phase, but I can't get the path
> for them... I'm trying with:
> 
>      NSString *dexterPath = [[NSBundle mainBundle] pathForResource:
> @"dexter" ofType:@"mp4"];

[NSBundle bundleForClass: [self class]]. The test suite runs in the context of 
the application under test, and is not in the main bundle.

Also, the group in which a file appears in the Project navigator has no 
influence over its role in the product; that's a matter for the build phases.

        — F

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to