Re: Responding to a double-click in a table
Re: Responding to a double-click in a table
- Subject: Re: Responding to a double-click in a table
- From: Ricky Sharp <email@hidden>
- Date: Mon, 28 Aug 2006 15:53:00 -0500
On Aug 28, 2006, at 3:21 PM, Remco Poelstra wrote:
I've a tableview (1 column) which displays filename's. I want to be
able to open the file when the user double-clicks on a row. I
figured out that I would need the mouseDown: method from the
NSCell. Therefor I need to subclass it in IB.
To instantiate it, I have to drag my new class in IB to the pallet
and from there add it to my user interface.
The question now is: How do I add that cell to my table?
Or am I completely wrong here?
Check out NSTableView's setDoubleAction:
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden