• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
      • From: Stéphane Sudre <email@hidden>
References: 
 >SubClass of NSPopUpButtonCell and NSSmallControlSize (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: C++ framework <-> Cocoa
  • Next by Date: Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
  • Previous by thread: SubClass of NSPopUpButtonCell and NSSmallControlSize
  • Next by thread: Re: SubClass of NSPopUpButtonCell and NSSmallControlSize
  • Index(es):
    • Date
    • Thread