RE: Programatically create SMALL NSCircularBezelStyle NSButtonCell
RE: Programatically create SMALL NSCircularBezelStyle NSButtonCell
- Subject: RE: Programatically create SMALL NSCircularBezelStyle NSButtonCell
- From: "Guy Umbright" <email@hidden>
- Date: Fri, 30 Jan 2004 10:11:34 -0600
- Thread-topic: Programatically create SMALL NSCircularBezelStyle NSButtonCell
OK. I will go away now. I seem to have real problems
missing stuff in the doc lately. I fiddled with it and
poured through doc and examples for an hour+ last night
and didn't come across it.
[(walks away hitting forehead with heel of hand) Stupid!
Stupid! Stupid!]
Sigh.
Thanks.
-----Original Message-----
From: Alastair Houghton [
mailto:email@hidden]
Sent: Friday, January 30, 2004 9:50 AM
To: Guy Umbright
Cc: email@hidden
Subject: 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.
This electronic mail message and any attached files contain information
intended for the exclusive use of the individual or entity to whom it is
addressed and may contain information that is proprietary, privileged,
confidential and/or exempt from disclosure under applicable law. If you are
not the intended recipient, you are hereby notified that any viewing, copying,
disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail or
telephone, of any unintended recipients and delete the original message
without making any copies.
_______________________________________________
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.