• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBundle wierdness in OCUnit target:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSBundle wierdness in OCUnit target: (From: William Hunt <email@hidden>)
 >Re: NSBundle wierdness in OCUnit target: (From: Chris Hanson <email@hidden>)
 >Re: NSBundle wierdness in OCUnit target: (From: William Hunt <email@hidden>)

  • Prev by Date: Re: CIImage (TIFFRepresentation) memory leak
  • Next by Date: Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure
  • Previous by thread: Re: NSBundle wierdness in OCUnit target:
  • Next by thread: Re: NSBundle wierdness in OCUnit target:
  • Index(es):
    • Date
    • Thread