Re: Delegate for Double Click in NSTableView
Re: Delegate for Double Click in NSTableView
- Subject: Re: Delegate for Double Click in NSTableView
- From: Marco Scheurer <email@hidden>
- Date: Mon, 4 Mar 2002 17:45:58 +0100
On Sunday, March 3, 2002, at 04:35 pm, Andy Lee wrote:
At 4:17 PM +0100 3/3/02, Lukasz Kuczborski wrote:
What is the delagate method used when you double click in
NSTableView's row?
There isn't one. To set a table view's double-click behavior, use
-setDoubleAction:. It's described, a bit sketchily, in the class doc
for NSTableView. You can see how it's used in the "SimpleBrowser"
example code. Basically, -setDoubleAction: expects a selector for a
method of the form
- (void)myDoubleAction:(id)sender
where "sender" will the be NSTableView itself when this method is
invoked.
And the message will be sent to the NSTableView's target, not its
delegate.
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.