Re: initializer for NSTextView subclass not being invoked on Nib instantiation

2009-04-08 Thread Stuart Malin
Great explanation, Kyle. Thanks for taking the effort to provide one so thorough. On Apr 7, 2009, at 10:28 PM, Kyle Sluder wrote: On Wed, Apr 8, 2009 at 4:15 AM, Stuart Malin wrote: Googling this issue has led me to discover that, for NSTextView, -initWithCoder gets called instead. Yes,

Re: initializer for NSTextView subclass not being invoked on Nib instantiation

2009-04-08 Thread Stuart Malin
Sure does cover it - quite specifically. Thanks for the reference -- lots of good material there that I need to absorb. On Apr 7, 2009, at 10:24 PM, Jonathan Hess wrote: Hey Stuart - This link should cover your questions: http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResou

Re: initializer for NSTextView subclass not being invoked on Nib instantiation

2009-04-08 Thread Kyle Sluder
On Wed, Apr 8, 2009 at 4:15 AM, Stuart Malin wrote: > Googling this issue has led me to discover that, for NSTextView, > -initWithCoder gets called instead. Yes, indeed. > I've never run into this before -- that is, my subclassed NSView objects > have their -initWithFrame: invoked (and NOT -init

Re: initializer for NSTextView subclass not being invoked on Nib instantiation

2009-04-08 Thread Jonathan Hess
Hey Stuart - This link should cover your questions: http://developer.apple.com/documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html#//apple_ref/doc/uid/1051i-CH4-SW19 You're using awakeFromNib for its intended purpose. Good Luck - Jon Hess On Apr 8, 2009, at 1:15 AM, S

initializer for NSTextView subclass not being invoked on Nib instantiation

2009-04-08 Thread Stuart Malin
I have a Nib with a single custom NSView subclass. That view has some controls in it, including an instance of an NSTextView (that is also subclassed). When the Nib is instantiated, the -awakeFromNib method of the MyTextView class is invoked, but neither -initWithFrame: nor - initWithFrame