• 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: Programatically create SMALL NSCircularBezelStyle NSButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically create SMALL NSCircularBezelStyle NSButtonCell


  • Subject: Re: Programatically create SMALL NSCircularBezelStyle NSButtonCell
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 30 Jan 2004 15:50:08 +0000

On 30 Jan 2004, at 14:35, Guy Umbright wrote:

> I am trying to do a multicell NSControl subclass. One of the
> cells is supposed to be the small (20px) version of a round button,
> but I can only get it to draw the large (25px) version.
>
> What am I missing? Is there some other attribute I need to set?
> Any ideas appreciated. Here is some code:
>
>
> In the constructor:
> (I am working from memory here so please forgive me any
> small errors)
>
> m_buttonCell = [[NSButtonCell alloc] initImageCell:nil];
> [m_buttonCell setBezelType NSCircularBezelStyle];
>
> m_buttonFrame.size.width = m_buttonFrame.size.height = 20;

How about

[m_buttonCell setControlSize:NSSmallControlSize]

Kind regards,

Alastair.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Programatically create SMALL NSCircularBezelStyle NSButtonCell (From: "Guy Umbright" <email@hidden>)

  • Prev by Date: Re: Toolbar Icons
  • Next by Date: Re: Toolbar Icons
  • Previous by thread: Programatically create SMALL NSCircularBezelStyle NSButtonCell
  • Next by thread: RE: Programatically create SMALL NSCircularBezelStyle NSButtonCell
  • Index(es):
    • Date
    • Thread