Re: Delegate for Double Click in NSTableView
Re: Delegate for Double Click in NSTableView
- Subject: Re: Delegate for Double Click in NSTableView
- From: Andy Lee <email@hidden>
- Date: Sun, 3 Mar 2002 10:35:23 -0500
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?
>
PLEASE HELP! :)
>
TIA
>
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.
--Andy
_______________________________________________
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.