Re: how do I disable cell editing in NSTableView?
Re: how do I disable cell editing in NSTableView?
- Subject: Re: how do I disable cell editing in NSTableView?
- From: email@hidden
- Date: Sun, 17 Nov 2002 23:37:53 +0100
On dimanche, novembre 17, 2002, at 08:44 PM, Alex Reynolds wrote:
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?
The method prototype is:
- (BOOL)tableView:(NSTableView *)aTableView
shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
not:
- (BOOL) tableView: (NSTableView *)shouldEditTableColumn:
(int)rowIndex;
You current method will never be called.
_______________________________________________
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.