• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] Contextual Menu Items Size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[Q] Contextual Menu Items Size (From: Eric Gorr <email@hidden>)
 >Re: [Q] Contextual Menu Items Size (From: Nate Weaver <email@hidden>)

  • Prev by Date: Re: How do you store an NSArray as an attribute in a Core Data entity
  • Next by Date: RE: [Q] "auto"-incrementing integer attribute in awakeFromInsert
  • Previous by thread: Re: [Q] Contextual Menu Items Size
  • Next by thread: draw NSButtonCell or combo cell only when selected?
  • Index(es):
    • Date
    • Thread