Re: How do I get at my bindings in a unit test?
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