• 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: OCUnit and main bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OCUnit and main bundle


  • Subject: Re: OCUnit and main bundle
  • From: Marco Scheurer <email@hidden>
  • Date: Thu, 17 Feb 2005 18:37:19 +0100

On Feb 17, 2005, at 17:48PM, Tim Hart wrote:

I [...] determined that in my case it was more 'correct' to call

[NSBundle bundleForClass:[self class]];

than to look for the main bundle.

In my case, I realized that I wanted to pair the resource (the plist) with whatever bundle the class itself was compiled in - not the main bundle of the application.

Yes, that would be my first suggestion.

An alternative you can try is to launch the application itself in test mode, by specifying

-SenTest Self

as an argument. Your application should launch, execute linked tests, writing the results in the console and quit (note that in order for the tests to be found ZeroLink must be off, or you must use a workaround, as described in the kit).

marco

Marco Scheurer
Sen:te, Lausanne, Switzerland   http://www.sente.ch

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >OCUnit and main bundle (From: Giuseppe Alletti <email@hidden>)
 >Re: OCUnit and main bundle (From: Tim Hart <email@hidden>)

  • Prev by Date: Re: Changing control layouts
  • Next by Date: RSS/RDF
  • Previous by thread: Re: OCUnit and main bundle
  • Next by thread: [ANN] Call for Sessions / Papers / Early Registration for ADHOC 2005
  • Index(es):
    • Date
    • Thread