• 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: 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


  • Follow-Ups:
    • Re: NSBundle wierdness in OCUnit target:
      • From: Chris Hanson <email@hidden>
    • Re: NSBundle wierdness in OCUnit target:
      • From: "Melissa J. Turner" <email@hidden>
References: 
 >NSBundle wierdness in OCUnit target: (From: William Hunt <email@hidden>)
 >Re: NSBundle wierdness in OCUnit target: (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: NSURLDownload and userInfo
  • Next by Date: Re: Clicking NSButton causes parent view to draw in transparent background
  • Previous by thread: Re: NSBundle wierdness in OCUnit target:
  • Next by thread: Re: NSBundle wierdness in OCUnit target:
  • Index(es):
    • Date
    • Thread