NSPopUpButton & NSPopUpButtonCell in Table set to same NSMenu causes draw glitch
NSPopUpButton & NSPopUpButtonCell in Table set to same NSMenu causes draw glitch
- Subject: NSPopUpButton & NSPopUpButtonCell in Table set to same NSMenu causes draw glitch
- From: George Orthwein <email@hidden>
- Date: Fri, 7 Sep 2007 01:15:13 -0400
Anyone seen this before? I have an NSPopUpButton with its menu outlet
set to an NSMenu in my nib. It displays fine. However, I want the
same menu to appear in a table. So I set the column to use
NSPopUpButtonCell and set the cell's menu outlet to the same NSMenu.
The table cell popup works fine but now my NSPopUpButton outside of
the table, which was previously fine, draws with an extra dark
shadow. It looks like it's getting drawn multiple times. For
instance, if I turn off its border then the text for it gets darker,
again as if it is being drawn twice.
Simply creating a second duplicate NSMenu for it does fix it, but I
wondered if anyone had a better workaround, or if I'm not supposed to
be using the menu outlet in this way (the only mention of the menu
outlet in the docs seems to be regarding contextual menus).
Thanks!
George
_______________________________________________
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