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: Dave Carrigan <email@hidden>
- Date: Tue, 28 Jul 2009 08:39:13 -0700
On Jul 28, 2009, at 8:31 AM, Daniel Child wrote:
Which brings up another question: do I need the "object" (blue cube)
at all in the nib if the file's owner is of the same class and
presumably represents the same object. Are they redundant?
They are completely different things.
The blue cube object will cause a brand new object to be instantiated
when the nib is loaded.
The file's owner is a pseudo-object - it represents an object external
to the nib that has already been instantiated before the nib gets
loaded.
This almost certainly explains why you seem to have two different
objects of the same class.
--
Dave Carrigan
email@hidden
Seattle, WA, USA
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
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