• 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 14:01:36 -0400

On Oct 28, 2009, at 1:51 PM, Gerd Knops wrote:

On Oct 28, 2009, at 11:41 AM, Jim Correia wrote:

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.


I could, but given the flexible number of arguments that is a bit of work.

The cocoa frameworks provide a lot of functionality. But sometimes you have to write some code...


And since the tableview already knows how to do that, I was wondering if that code was exposed in some way. Apparently not.

For now I just added a transparent button with similar bindings and trigger that one.

Creating an invisible button to trigger a programmatic action is generally the wrong way to design your code flow. (If you are already doing work programmatically, don’t call back into the view layer to do additional work by side effect, do it directly.)


- 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


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

  • Prev by Date: Re: A distinct group of pictures in the bundle
  • Next by Date: Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)
  • Previous by thread: Re: Programmatically invoking double-click bindings on NSTableView
  • Next by thread: A distinct group of pictures in the bundle
  • Index(es):
    • Date
    • Thread