NSView in NSMenuItem
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