Re: [Q] Contextual Menu Items Size
Re: [Q] Contextual Menu Items Size
- Subject: Re: [Q] Contextual Menu Items Size
- From: Eric Gorr <email@hidden>
- Date: Thu, 19 Mar 2009 09:59:38 -0400
I went the route of setting the attributed title of all of the items.
It didn't seem to make much sense to have a duplicate of the same
thing when it was unnecessary.
So, to set the font attribute I used the following:
[NSFont menuFontOfSize:[NSFont smallSystemFontSize]]
Any reason why this isn't appropriate?
On Mar 18, 2009, at 5:38 PM, Nate Weaver wrote:
Either set the attributed title of the items, or don't use the same
menu instance for your popup and context menu.
On Mar 18, 2009, at 11:38 AM, Eric Gorr wrote:
I have a popup menu whose control size is small.
To a couple of views, I have done the following:
[myView setMenu:[myPopupMenu menu]];
Now, when I control-click on myView, I see the menu that
myPopupMenu will display.
The problem is that if I control-click on myView before I click on
myPopupMenu, the menu items are displayed at their Regular size.
If I click on myPopupMenu first, I see the menu items at a small
size and then if I control-click on myView, the menu items are
displayed at a Small size.
What is the proper way to ensure the menu items are always
displayed at a Small size?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@ericgorr.net
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden