Re: NSTableView Question
Re: NSTableView Question
- Subject: Re: NSTableView Question
- From: Stefan Schüßler <email@hidden>
- Date: Sat, 2 Aug 2003 14:25:36 +0200
Cody,
since your cells are uneditable you can use NSTableViews
setDoubleAction method:
- (void)doubleClick:(id)aTableView
{
NSLog( @"double-click on row #%d", [aTableView clickedRow] );
}
- (void)awakeFromNib
{
[yourTableView setTarget:self];
[yourTableView setDoubleAction:@selector(doubleClick:)];
}
Hope this helps.
Stefan
Am Samstag, 02.08.03 um 13:46 Uhr schrieb Cody Brimhall:
Hello-
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. I've looked around, and
seen some things that might possibly work (should I be using events
here?), but I'm really not sure. Any pointers as to what would work?
Best
practices?
Thanks.
-Cody
_______________________________________________
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.