Re: A 'small' NSMenu
Re: A 'small' NSMenu
- Subject: Re: A 'small' NSMenu
- From: Nicholas Shanks <email@hidden>
- Date: Tue, 22 Mar 2005 01:20:43 +0000
On 22 Mar 2005, at 00:34, I wrote:
How can I programatically get a pop-up button's menu to reflect the
pop-up button's -controlSize ?
- Nick.
And how come I always solve things 90 seconds after posting to a
mailing list about it? (even if I've been stuck on the problem for a
few days, it seems :P)
the solution is:
[cell setFont:[NSFont systemFontOfSize:[NSFont
systemFontSizeForControlSize:[cell controlSize]]]]
the popup button cell handles setting the menu font via some internal
API no doubt.
- Nick.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden