• 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
NSPopUpButton & NSPopUpButtonCell in Table set to same NSMenu causes draw glitch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: [Q] Characteristics of different Inter Process Communication mechanism on Mac?
  • Next by Date: characters in cocoa
  • Previous by thread: Re: [Q] Characteristics of different Inter Process Communication mechanism on Mac?
  • Next by thread: characters in cocoa
  • Index(es):
    • Date
    • Thread