Re: Switching between editable and not in a NSTableView
Re: Switching between editable and not in a NSTableView
- Subject: Re: Switching between editable and not in a NSTableView
- From: Malte Tancred <email@hidden>
- Date: Mon, 3 Jun 2002 16:52:53 +0200
On monday, june 3, 2002, at 03:38 , Frank Blome wrote:
is there really no way to switch the editable mode of a cell in a
NSTableView programmaticly? I've look over the documentation, but I
can't find it...
A delegate to the table view can control when editing is allowed, on a
per cell basis. Just implement the following method in the delegate:
- (BOOL)tableView:(NSTableView *)aTableView
shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
You'll find a description of the method at the end of the NSTableView
class documentation.
Cheerio,
Malte
_______________________________________________
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.