Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
- Subject: Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 5 Jun 2001 16:28:37 +0200
On mardi, juin 5, 2001, at 03:35 PM, Stefan Arentz wrote:
[...]
This is in the docs:
The initImageCell: method is the designated initializer for NSCells that
display images. The initTextCell: method is the designated initializer
for
NSCells that display text. Override one or both of these methods if you
implement a subclass of NSCell that performs its own initialization.
So ... you need one of those ... instead of initWithFrame i guess.
The reason why I added:
in a subclass of NSPopUpButton:
This is in the control subclass not in the Cell subclass that I'm doing
the setControlSize:
I will add another point to clarify things. I use a CustomView in IB so
the initWithFrame: method is called (initWithCoder is not called).