Re: NSBundle wierdness in OCUnit target:
Re: NSBundle wierdness in OCUnit target:
- Subject: Re: NSBundle wierdness in OCUnit target:
- From: "Melissa J. Turner" <email@hidden>
- Date: Mon, 10 Mar 2008 20:53:28 -0700
Ok, so it's the expected behavior. Phooey! I then have two
questions:
1) How do I "inject [my] tests into [my] application?"
You shouldn't need to. They're being injected automatically as part of
the way the Xcode OCUnit test targets work.
Try printing out [NSBundle allBundles]. Your application bundle should
be in there somewhere, it's just not the mainBundle.
2) Can I modify the ocunit target somehow so that the Bundle is
where I'd expect it to be?
No. The main bundle will always be the bundle of the application
running the tests, which is otest.
+Melissa
_______________________________________________
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