Re: NSWindow reference remains null after window did load
Re: NSWindow reference remains null after window did load
- Subject: Re: NSWindow reference remains null after window did load
- From: Daniel Child <email@hidden>
- Date: Tue, 28 Jul 2009 14:05:48 -0400
Thanks for confirming this.
On Jul 28, 2009, at 11:43 AM, Graham Cox wrote:
Not only are they redundant, this is almost certainly your bug.
Objects in a nib are real objects. Therefore you have two of them,
both of the same class. Normally File's Owner is the window
controller and this is the object you should be referring to in your
code. The other object is getting in the way and likely causing
problems.
You generally use a blue cube for any other object, such as a
separate subcontroller that your main controller might want to use,
but they definitely won't be the same object - they can't be, as
each item in a nib is a distinct, real object.
_______________________________________________
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