Re: initWithFrame not being called on my NSImageView subclass
Re: initWithFrame not being called on my NSImageView subclass
- Subject: Re: initWithFrame not being called on my NSImageView subclass
- From: Shamyl Zakariya <email@hidden>
- Date: Thu, 21 Feb 2008 14:15:37 -0500
That makes sense, thank you.
email@hidden
"Such a theory has to be bizarre and elaborate, as well as being
stupid"
-- Jim Loy, regarding a hollow earth
On Feb 21, 2008, at 2:00 PM, Kyle Sluder wrote:
On Thu, Feb 21, 2008 at 1:36 PM, Shamyl Zakariya
<email@hidden> wrote:
Anybody know why it wouldn't be called? It doesn't appear to be
misspelled.
Re-read the documentation here:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/SubclassingNSView/chapter_6_section_2.html
Short version: subclasses of views that you've put in your nib have
already been instantiated when they were freeze-dried into the nib.
It would be incorrect to call -initWithFrame: again. That's why you
have -awakeFromNib.
--Kyle Sluder
_______________________________________________
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