• 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
Newbie - Using NSButtonCell in a table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie - Using NSButtonCell in a table


  • Subject: Newbie - Using NSButtonCell in a table
  • From: Jeff Brown <email@hidden>
  • Date: Sun, 20 Mar 2005 22:59:16 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

I've got a table with one column of NSButtonCells. The
table columns are bound to an NSArrayController which
in turn is bound to an NSArray of models in File's
Owner.
The NSButtonCell  has a target action in FIle's Owner.
 What needs to happen is when I click on a button in a
row of the table, the target method needs to access
one of the fields of the model represented by that
row.
I tried just asking the NSArrayController to return
it's selected object but found that the row gets
selected after the button is pressed and released.
(even though it doesn't look like the is the case).
Any idea how I can do this e.g. is there any way to
determine which row the pressed button is on?

Thanks guys
Jeff
 _______________________________________________
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: NSMixedState and bindings
  • Next by Date: Re: dyld: Too many open files, errno = 24
  • Previous by thread: Re: NSMixedState and bindings
  • Next by thread: Binding to an array of dictionaries as a to-many
  • Index(es):
    • Date
    • Thread