• 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
NSView in NSMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView in NSMenuItem


  • Subject: NSView in NSMenuItem
  • From: Hendrik Holtmann <email@hidden>
  • Date: Wed, 2 Jan 2008 14:24:23 +0100

Hi,

I am using the new setView method of Leopard to set the NSView of an NSMenuItem. However I ran into two problems I can't solve at the moment:
1) When I set the view it works, but there is always a border around the view. E.g. when I have an NSView with a solid background it does not fill the whole NSMenuItem. There is always a border on top and bottom of the NSView.
2) I am trying to add a second NSMenuItem containing an NSView that has got a height of about 200px. When its added to the NSMenu the first NSMenuItem resizes as well to a height of 200px. How can I prevent this?


Best,

Hendrik
_______________________________________________

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: NSView in NSMenuItem
      • From: Peter Ammon <email@hidden>
  • Prev by Date: Re: Scripting Bridge and Finder selection
  • Next by Date: Re: Getting iChat buddy id from IMServices
  • Previous by thread: Re: error when calling function in another C file
  • Next by thread: Re: NSView in NSMenuItem
  • Index(es):
    • Date
    • Thread