Re: A 'small' NSMenu
Re: A 'small' NSMenu
- Subject: Re: A 'small' NSMenu
- From: "Mike R. Manzano" <email@hidden>
- Date: Mon, 21 Mar 2005 16:54:30 -0800
Just wondering, why would you want the pop-up menu to be small? Since
it pops up, you don't have to account for its size in your window
(although you might want the actual button that you click small to
conserve space); I'd think you'd want it to be as big as possible so
it's got a good ratio according to Fitz's law.
Regards,
Mike
On Mar 21, 2005, at 4:34 PM, Nicholas Shanks wrote:
On 19 Feb 2004, at 14:25, I wrote:
Hello,
I searched in the archives, but did not find anything useful. So
again the
question: How to make a NSMenu (which I want to use as a contextual
menu)
small?
You could try creating an offscreen NSPopUpButton and setting it's
size to small, populating it's menu and then displaying the menu when
you want it.
- Nick.
Did you manage to get this working?
I have a custom pop-up button cell class, which in my button's awake
from nib method substitute for the generic class and try copying over
all the cell properties. For some reason the new cell is now giving me
Normal-sized menus instead of small or mini menus :-(
Maybe someone else can help?
How can I programatically get a pop-up button's menu to reflect the
pop-up button's -controlSize ?
- 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