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

NSPopupButtonCell in NSTableView


  • Subject: NSPopupButtonCell in NSTableView
  • From: email@hidden (Ben Einstein)
  • Date: Mon, 10 Jul 2006 18:28:03 +0000

Hi:

I have a table with a bunch of various controls in different columns: checkboxes, segmented controls, etc and one column with a popupbutton. All cells behave normally except for the popupbutton, which, for some reason I can't use selectItemWithTitle/Index/Tag. I can dynamically load items into the popup, my tableView:setObjectValue:forTableColumn:row method correct reports the index of the selected item, but I just can't display the selection after it's been clicked, nor can I programmatically select a value. I've done a bunch of searching, and there seem to be a whole bunch of ways to do it (ie adding a NSMenu, etc), but I can't stand those kinds of solutions. I feel like this should work without a problem? Something I'm doing wrong or can you really not use selectItemWithTitle in tableView?

On a side note, it seems that there is only one cell in a given popup, as the error I get when using an int index of anything other than 0 is: "invalid parameter not satisfying: (index >= 0) && (index <(_itemArray ? CFArrayGetCount((CFArrayRef)_itemArray) : 0", meaning of course that 0 is the only index. I feel like this is correct, but I can't quite recall from my Hillegass days. Any help would be greatly appreciated.

Thanks in advance,
Ben
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Getting a bundle to load symbols from the main app bundle
  • Next by Date: Re: convert Java or C Source code into Objective-c
  • Previous by thread: Re: localization, gdb and AppleLanguages
  • Next by thread: NSWindows/NSPanels/NSDrawers are NIL
  • Index(es):
    • Date
    • Thread