• 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: best time to alter GUIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best time to alter GUIs


  • Subject: Re: best time to alter GUIs
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 3 Mar 2008 11:05:37 -0800


On Mar 3, 2008, at 09:12, Daniel Child wrote:

My bad. I should have checked that, and assumed it simply passed the address. If [self window] loads things, is there any way to obtain the window's address without loading it? I found it useful to assign a (superfluous) instance variable since I was doing so much with the window. I didn't want to have to use [self window] each time, especially if [self window] actually tries to load each time.

"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


References: 
 >Re: best time to alter GUIs (From: Ken Thomases <email@hidden>)
 >Re: best time to alter GUIs (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: NSArchiver and MySQL
  • Next by Date: Re: best time to alter GUIs
  • Previous by thread: Re: best time to alter GUIs
  • Next by thread: Re: best time to alter GUIs
  • Index(es):
    • Date
    • Thread