Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
- Subject: Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
- From: Stefan Arentz <email@hidden>
- Date: Tue, 5 Jun 2001 15:35:36 +0200
On Tue, Jun 05, 2001 at 11:32:25AM +0200, Stiphane Sudre wrote:
>
I'm curently subclassing NSPopUpButtonCell and am trying to make this
>
cell small with NSSmallControlSize.
>
>
It's not working. The Menu is still BIG.
>
>
in a sublclass of NSPopUpButton:
>
>
- (id) initWithFrame: (NSRect) frame
>
{
>
[super initWithFrame:frame];
>
>
[[self cell] setControlSize:NSSmallControlSize];
>
>
return self;
>
}
>
>
Cool ?
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.
NSStefanCell