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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to