• 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: How do I get at my bindings in a unit test?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get at my bindings in a unit test?


  • Subject: Re: How do I get at my bindings in a unit test?
  • From: Scott Ellsworth <email@hidden>
  • Date: Mon, 10 Jul 2006 17:54:07 -0700


On Jul 10, 2006, at 5:44 PM, Scott Ellsworth wrote:

When run, all the asserts fail. The initWithNibNamed returns NO, which means that the loop was never run, and so _window is nil. Using [NSBundle mainBundle] did not change the behavior of initWithNibNamed.

The solution is pretty obvious in retrospect.

I had not set the proper bundle loader path, as per <http:// developer.apple.com/documentation/DeveloperTools/Conceptual/ UnitTesting/Articles/CreatingTests.html>

When you fail to do that, the main bundle is not your app bundle.

Is there anything obviously wrong with the above?

The above code is fine.

Scott
_______________________________________________
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: 
 >How do I get at my bindings in a unit test? (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: How do I get at my bindings in a unit test?
  • Next by Date: Determining modifier key state and *end* of menu selection
  • Previous by thread: How do I get at my bindings in a unit test?
  • Next by thread: Determining modifier key state and *end* of menu selection
  • Index(es):
    • Date
    • Thread