Re: NSBundle wierdness in OCUnit target:
Re: NSBundle wierdness in OCUnit target:
- Subject: Re: NSBundle wierdness in OCUnit target:
- From: William Hunt <email@hidden>
- Date: Mon, 10 Mar 2008 18:57:52 -0700
On Mar 10, 2008, at 6:29 PM, Chris Hanson wrote:
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!
My apologies. :)
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).
Ok, so it's the expected behavior. Phooey! I then have two questions:
1) How do I "inject [my] tests into [my] application?"
2) Can I modify the ocunit target somehow so that the Bundle is where
I'd expect it to be?
Thanks,
Wil
--
Wil Hunt
"Life is the art of drawing sufficient conclusions from insufficient
premises."
-- Samuel Butler
_______________________________________________
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