Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initWithFrame not being called on my NSImageView subclass




On Feb 21, 2008, at 14:06, Ken Ferry wrote:

Hm, sorry if the docs confused you.. if you can point at the docs that
made you think this, it'd be great to have a bug.

There's:

http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/SubclassingNSView/chapter_6_section_2.html#/ /apple_ref/doc/uid/TP40002978-CH7-DontLinkElementID_12

It doesn't actually say that unarchived nib views *don't* go through initWithCoder, but it doesn't promise that either.

Incidentally, that document was written pre-Leopard, and in IB 3 there's a third case. If you have a IB plugin that creates the view, then the subclass initWithFrame *is* going to get called (from within IB). At least I think so.


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >initWithFrame not being called on my NSImageView subclass (From: Shamyl Zakariya <email@hidden>)
 >Re: initWithFrame not being called on my NSImageView subclass (From: Mike Abdullah <email@hidden>)
 >Re: initWithFrame not being called on my NSImageView subclass (From: "Kyle Sluder" <email@hidden>)
 >Re: initWithFrame not being called on my NSImageView subclass (From: "Ken Ferry" <email@hidden>)
 >Re: initWithFrame not being called on my NSImageView subclass (From: "Kyle Sluder" <email@hidden>)
 >Re: initWithFrame not being called on my NSImageView subclass (From: "Ken Ferry" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.