• 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
problem with NSPopUpButtonCell subclass in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with NSPopUpButtonCell subclass in NSTableView


  • Subject: problem with NSPopUpButtonCell subclass in NSTableView
  • From: Ken Victor <email@hidden>
  • Date: Fri, 14 Dec 2007 08:37:59 -0800

i've got a subclass of NSPopUpButtonCell that i use in some of my tables. this is configured as a pull-down menu in IB and bound to my model. in my subclass, i override trackMouse:inRect:ofView:untilMouseUp: in my override, i enumerate over the items in the menu and set the attributed title of each item. i set the attributes of each title to be the same font that is in use by the "owning" table. and then call super.

this all works fine... most of the time! i've discovered that for some sizes of lucida grande, instead of getting the pull down window displaying below the table cell, instead it acts like a popup menu and displays on top of the table cell and with no menu items visible. this happens on both tiger and leopard, but for different sizes of lucida grande. eg, on tiger lucida grande 13 displays the problem, but this works fine on leopard; lucida grande 18 has the problem on both tiger and leopard! (this same wrong behavior happens for other fonts and sizes as well, but i don't have an exhaustive list.)

can anyone suggest what might be happening? and/or how to find out what might be happening? and/or how to fix this?

thanx,
ken
_______________________________________________

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: Binding NSTreeController to NSBrowser
  • Next by Date: Adding a zip file to the resources doesn't add it in the built application's resource path
  • Previous by thread: Re: Binding NSTreeController to NSBrowser
  • Next by thread: Adding a zip file to the resources doesn't add it in the built application's resource path
  • Index(es):
    • Date
    • Thread