• 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: 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


  • Follow-Ups:
    • Re: Cocoa-dev Digest, Vol 5, Issue 335
      • From: Quincey Morris <email@hidden>
    • Re: Cocoa-dev Digest, Vol 5, Issue 335
      • From: Andrew Merenbach <email@hidden>
  • Prev by Date: Re: NSTextView changes font
  • Next by Date: Re: Cocoa-dev Digest, Vol 5, Issue 335
  • Previous by thread: Re: force NSTextField to accept only Roman, or the other character codes
  • Next by thread: Re: Cocoa-dev Digest, Vol 5, Issue 335
  • Index(es):
    • Date
    • Thread