• 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
Re: Programmatically invoking double-click bindings on NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Programmatically invoking double-click bindings on NSTableView
      • From: Gerd Knops <email@hidden>
References: 
 >Programmatically invoking double-click bindings on NSTableView (From: Gerd Knops <email@hidden>)

  • Prev by Date: Programmatically invoking double-click bindings on NSTableView
  • Next by Date: Re: Detecting a network connection
  • Previous by thread: Programmatically invoking double-click bindings on NSTableView
  • Next by thread: Re: Programmatically invoking double-click bindings on NSTableView
  • Index(es):
    • Date
    • Thread