Re: Programmatically invoking double-click bindings on NSTableView
Re: Programmatically invoking double-click bindings on NSTableView
- Subject: Re: Programmatically invoking double-click bindings on NSTableView
- From: Jim Correia <email@hidden>
- Date: Wed, 28 Oct 2009 12:41:03 -0400
On Wed, Oct 28, 2009 at 12:25 PM, Gerd Knops <email@hidden> wrote:
> Seems this should be easy:
>
> I have an NSTableView's "Double Click Target", "Double Click Argument",
> "Double Click Argument2" etc. binding set, and they work fine.
>
> Now I would like to programmatically get the tableview to issue a
> double-click response. Obviously "target" and "doubleAction" are not useful
> in that context.
>
> Any ideas how to get this done?
If this is just a one-off case, the simplest solution is to invoke the
method with the appropriate arguments on the target directly.
If you are looking for a more general solution, you can retrieve the
binding data from the table view using -infoForBinding:, valuate the
target & arguments, and invoke the method that way.
- Jim
_______________________________________________
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