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: Andrew Merenbach <email@hidden>
- Date: Fri, 7 Mar 2008 20:10:11 -0800
Hi, Daniel,
I haven't been following this thread, unfortunately, but what comes to
mind is the checkbox for "Visible at launch" in the window
controller's inspector panel. Is that ticked?
Cheers,
Andrew
On Mar 7, 2008, at 7:59 PM, Daniel Child wrote:
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
_______________________________________________
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