• 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: devil of a time with an NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: devil of a time with an NSImageView


  • Subject: Re: devil of a time with an NSImageView
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 20 Aug 2009 14:02:22 -0400

On Aug 20, 2009, at 1:12 PM, Quincey Morris wrote:

a. I'm not sure how 'loadWindow' got into this discussion -- the documentation says not to call 'loadWindow' directly but to call 'window' instead and let *it* call 'loadWindow'.

You're right, my mistake. I was responding to Jean-Daniel's message ("And the -[NSWindowController window] and -[NSWindowController loadWindow] confirms that windowDidLoad is invoke only when the nib has finish loading.") and got my own wires crossed.



b. 'window' won't return (presumably because an underlying 'loadNib...' doesn't return) until the NIB is completely loaded, including all the invocations of 'awakeFromNib' and the invocation of 'windowDidLoad'. AFAIK it's perfectly safe to invoke 'window' immediately after creating the window controller, or even during the window controller's init method (I've done both without problems).

Good point.


c. A couple of weeks ago on this list, one of our Apple experts (Luke, maybe, but I can't remember for sure) said to use the more specialized method (such as 'windowDidLoad') *instead of* the generic 'awakeFromNib', if the class has it.

I missed that thread. Do you happen to know some keywords from the subject?


--
I.S.



_______________________________________________

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: devil of a time with an NSImageView
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: devil of a time with an NSImageView
      • From: Quincey Morris <email@hidden>
References: 
 >Statements in Replaced Method execute out of sequence - How? (From: Jerry Krinock <email@hidden>)
 >devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Dave DeLong <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Quincey Morris <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jean-Daniel Dupas <email@hidden>)
 >Re: devil of a time with an NSImageView (From: "I. Savant" <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jean-Daniel Dupas <email@hidden>)
 >Re: devil of a time with an NSImageView (From: "I. Savant" <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jean-Daniel Dupas <email@hidden>)
 >Re: devil of a time with an NSImageView (From: "I. Savant" <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Quincey Morris <email@hidden>)

  • Prev by Date: IB connections with view swapping?
  • Next by Date: Re: Force crash a cocoa app for Crash Reporter testing
  • Previous by thread: Re: devil of a time with an NSImageView
  • Next by thread: Re: devil of a time with an NSImageView
  • Index(es):
    • Date
    • Thread