Re: best time to alter GUIs
Re: best time to alter GUIs
- Subject: Re: best time to alter GUIs
- From: Quincey Morris <email@hidden>
- Date: Mon, 3 Mar 2008 11:05:37 -0800
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@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