Re: Cocoa-dev Digest, Vol 5, Issue 335
Re: Cocoa-dev Digest, Vol 5, Issue 335
- Subject: Re: Cocoa-dev Digest, Vol 5, Issue 335
- From: Daniel Child <email@hidden>
- Date: Fri, 07 Mar 2008 22:59:55 -0500
OK, thanks. But then in Cocoa you normally use alloc and init
together, and that's where the problem is, I think.
initWithWindowNibName seems to result in the window being shown
automatically.
I am instantiating the window controller, and am trying to figure out
at which point I could gain access to its window's memory without
showing the window.
On Mar 3, 2008, at 3:02 PM, email@hidden wrote:
"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