Fwd: how do I disable cell editing in NSTableView?
Fwd: how do I disable cell editing in NSTableView?
- Subject: Fwd: how do I disable cell editing in NSTableView?
- From: Alex Reynolds <email@hidden>
- Date: Sun, 17 Nov 2002 14:44:15 -0500
I have set up a table view delegate to a Document object.
In my Document.h, I have:
- (BOOL) tableView: (NSTableView *)shouldEditTableColumn: (int)rowIndex;
In my Document.m, I have:
- (BOOL) tableView: (NSTableView *)shouldEditTableColumn: (int)rowIndex
{
return NO;
}
I thought this would disable cell editing, but I can still double-click
on a cell and edit it.
My other delegates are working, so I don't believe it is a problem
related to whether the delegate outlet is working...
Does someone know what other approach I can take to disable cell
editing, using delegates?
I also tried this method:
- (BOOL) textShouldBeginEditing: (NSText *)textObject
setting the return value to NO, but this did not work, either.
Thanks in advance for any tips,
Regards,
Alex
_______________________________________________
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.