• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa-dev Digest, Vol 5, Issue 335
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 5, Issue 335


  • Subject: Re: Cocoa-dev Digest, Vol 5, Issue 335
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 7 Mar 2008 20:24:56 -0800


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 (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


References: 
 >Re: Cocoa-dev Digest, Vol 5, Issue 335 (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 5, Issue 335
  • Next by Date: NSTableViews, NSArraycontrollers and table selection question
  • Previous by thread: Re: Cocoa-dev Digest, Vol 5, Issue 335
  • Next by thread: NSTableViews, NSArraycontrollers and table selection question
  • Index(es):
    • Date
    • Thread