Re: devil of a time with an NSImageView
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