Re: NSTableView Question
Re: NSTableView Question
- Subject: Re: NSTableView Question
- From: Cody Brimhall <email@hidden>
- Date: Sat, 2 Aug 2003 06:14:27 -0700 (PDT)
Stefan-
Thanks for the example. I had indeed read about - setDoubleAction, but the
very basic definition in Apple's documentation left much to be desired for
someone who doesn't understand the inner-workings of selectors. This
clears things up a bit.
-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:)];
>
}
_______________________________________________
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.