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

NSPopUpButtons in an NSTableView


  • Subject: NSPopUpButtons in an NSTableView
  • From: Greg Hulands <email@hidden>
  • Date: Fri, 10 May 2002 10:40:28 +1000

Hi,
I have a column in an NSTableView which displays NSPopUpButtons. I have set
the target and selector of the cell in cell:willDisplay:etc but when my
selector gets called the sender is the tableview and not the popup. I assume
that this is normal, so I am able to get the column and then the cell. But
the cell I receive does not have the correct selected item. Is this because
the column uses the same cell for all rows of the column?

I have found in other posts that I would have to subclass NSTableColumn and
return a unique cell for each row. Is the best way to manage this with an
NSMutableDictionary with the row as the key? Does anyone have suggestions on
how to do this properly.

I am not sure that subclassing is the way to go. I thought that I could just
use the cell:willDisplay to set it up (which I do now and works fine) and
then set the selected item in my selector that gets called.

Any suggestions are greatly appreciated.

Regards,
Greg
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Manipulating Scrollers question
  • Next by Date: Re: REPOST: disabling ligatures & implicit font changes
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #605 - 16 msgs
  • Next by thread: Re: NSPopUpButtons in an NSTableView
  • Index(es):
    • Date
    • Thread