Re: NSTableView Question
Re: NSTableView Question
- Subject: Re: NSTableView Question
- From: Chris Hanson <email@hidden>
- Date: Sun, 3 Aug 2003 00:05:10 -0500
On Saturday, August 2, 2003, at 06:46 AM, Cody Brimhall wrote:
I have a NSTableView which displays a single column of several rows.
The
cells are uneditable, and I would like all double-clicks to the cells
to
call an action that would, say, open another window with information
pertinent to the cell that was double-clicked.
In its controller's -awakeFromNib method, set your NSTableView's
doubleAction. An NSTableView sends its action to its target when
clicked, and sends its doubleAction to its target when double-clicked.
Unfortunately it's not possible to set the doubleAction in Interface
Builder; fortunately that's what -awakeFromNib is for.
--Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.