• 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
Binding NSTableView Double Click argument and target to file's owner
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding NSTableView Double Click argument and target to file's owner


  • Subject: Binding NSTableView Double Click argument and target to file's owner
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 5 Oct 2008 17:09:41 -0400

Hi

I'm trying to bind double click actions of an NSTableView to "file's owner" and can't figure out exactly how to set them up. My file's owner has a double click handler defined like so:

- (void) handleDoubleClick:(NSNumber *) inRowIndex;

Given that, how would I set up the bindings for both "Double Click Target" and "Double Click Target" to bind the index of the clicked row to the file's owner?

Double Click Argument
bind to: file's owner
model key path: ????
selector: clickedRow // trying to pass clicked row index to handleDoubleClick


Double Click Target
	bind to: file's owner
	model key path: self
	selector: handleDoubleClick

Thanks for any help.
_______________________________________________

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: Re: How do I guarantee that an object is dealloced on the main thread?
  • Next by Date: hyphenationFactor in typesetter and layout manager
  • Previous by thread: Re: How do I guarantee that an object is dealloced on the main thread?
  • Next by thread: hyphenationFactor in typesetter and layout manager
  • Index(es):
    • Date
    • Thread