On Mar 7, 2008, at 19:59, 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.


Initializing the window controller doesn't itself cause the window to be shown. Something else is going on. Either the window is set "visible at launch" in the nib file, or something is explicitly causing the window to be shown.

If you're lucky, setting a breakpoint in the window controller's showWindow method will tell you when this is happening.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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]

Reply via email to