Skip navigation.
 
mlRe: initWithFrame not being called on my NSImageView subclass
FROM : Quincey Morris
DATE : Thu Feb 21 23:32:27 2008

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.