Re: NSBundle wierdness in OCUnit target:
Re: NSBundle wierdness in OCUnit target:
- Subject: Re: NSBundle wierdness in OCUnit target:
- From: Chris Hanson <email@hidden>
- Date: Mon, 10 Mar 2008 18:29:35 -0700
On Mar 10, 2008, at 4:44 PM, William Hunt wrote:
Well, I think I've traced the weirdness I was previously having with
the model down to the following...
Please don't start a new thread when the existing one will do just
fine. Creating a new thread removes context from the conversation
that may be needed to understand what's going on.
Thanks!
When I call:
NSLog( @"bundlePath: %@", [[NSBundle mainBundle] bundlePath] );
I get:
2008-03-10 16:41:18.565 otest[3819:80f] bundlePath: /Developer/Tools
This is expected behavior if your unit tests are being run by otest.
If you instead inject your tests into your application, then its main
bundle will be returned instead (because the tests are actually run
inside the application).
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden