• 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
Gap above NSMenuItem custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Gap above NSMenuItem custom view


  • Subject: Gap above NSMenuItem custom view
  • From: Joshua Garnham <email@hidden>
  • Date: Sun, 26 Dec 2010 16:07:26 +0000 (GMT)

I am using the setView: method on an NSMenuItem to set a custom view. In this
custom view there is an image which takes the whole of the view. The NSMenuItem
with this custom view is the first in the menu but the problem is it  doesn't
sit flush with the top of the menu, there is a big gap as you  can see here:

http://i.imgur.com/jIWQD.png

Why is this happening and how can I stop it?

Thanks.




_______________________________________________

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

  • Follow-Ups:
    • Re: Gap above NSMenuItem custom view
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: UISearchDisplayController in UIToolbar on iPad
  • Next by Date: Re: Gap above NSMenuItem custom view
  • Previous by thread: Re: iOS MapKit rotation leaves blank area
  • Next by thread: Re: Gap above NSMenuItem custom view
  • Index(es):
    • Date
    • Thread