• 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: NSMenuItem and images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenuItem and images


  • Subject: Re: NSMenuItem and images
  • From: Kristopher Matthews <email@hidden>
  • Date: Mon, 28 Apr 2008 08:41:43 -0500

Thanks for all the help. What I'm doing now is [[NSApp menu] menuBarHeight]. I find that I still have to subtract some hard coded value (6 is what I picked) - because of course I want the image contained in the menu, not sticking out. That said, I feel much better about hardcoding that vs. the full image size.

On Apr 28, 2008, at 8:33 AM, Hamish Allan wrote:

On Mon, Apr 28, 2008 at 2:21 PM, Adam R. Maxwell <email@hidden> wrote:

It's documented to return 0 for all menus except -[NSApp mainMenu]. Maybe
all other items are the same height as the main menu?

Even if not, it's probably still a better bet than hard-coding it...

Hamish

_______________________________________________

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: 
 >NSMenuItem and images (From: Kristopher Matthews <email@hidden>)
 >Re: NSMenuItem and images (From: Seth Willits <email@hidden>)
 >Re: NSMenuItem and images (From: "Adam R. Maxwell" <email@hidden>)
 >Re: NSMenuItem and images (From: Kristopher Matthews <email@hidden>)
 >Re: NSMenuItem and images (From: "Hamish Allan" <email@hidden>)
 >Re: NSMenuItem and images (From: Kristopher Matthews <email@hidden>)
 >Re: NSMenuItem and images (From: "Adam R. Maxwell" <email@hidden>)
 >Re: NSMenuItem and images (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: NSMenuItem and images
  • Next by Date: Re: NSMenuItem and images
  • Previous by thread: Re: NSMenuItem and images
  • Next by thread: Re: NSMenuItem and images
  • Index(es):
    • Date
    • Thread