Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically create SMALL NSCircularBezelStyle NSButtonCell



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.