Top five reasons your NSTableView doesn't respond to double clicks
Top five reasons your NSTableView doesn't respond to double clicks
- Subject: Top five reasons your NSTableView doesn't respond to double clicks
- From: John Scalo <email@hidden>
- Date: Sat, 10 May 2003 11:21:39 -0700
Note to others and future self:
5. One or more of the tableview columns are marked editable. This might not
be obvious if you're using a custom cell.
4. Something is obstructing the tableview and intercepting the double
clicks.
3. You haven't implemented the setDoubleAction method.
2. You've implemented the setDoubleAction method, but the selector it points
to doesn't take a sender argument. e.g. it should look like
[tableView setDoubleAction:@selector(doSomething:)];
- (void)doSomething:(id)sender
{
...
}
1. And the number one reason your NSTableView doesn't respond to double
clicks is...you haven't set the target!
[tableView setTarget:self];
_______________________________________________
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.