On Mar 3, 2008, at 09:12, Daniel Child wrote:
My bad. I should have checked that, and assumed it simply passed the address. If [self window] loads things, is there any way to obtain the window's address without loading it? I found it useful to assign a (superfluous) instance variable since I was doing so much with the window. I didn't want to have to use [self window] each time, especially if [self window] actually tries to load each time.
"Loading" a window means creating the NSWindow object by unarchiving it from the nib file. The window object literally does not exist before loading (and the window controller's private instance variable is nil). To modify the window object from what's in the nib file, you need to unarchive (load) it (which does not cause it to display), change it, then display it with the changes in place.
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
