Re: Disallow edit for rows in NSOutlineView
Re: Disallow edit for rows in NSOutlineView
- Subject: Re: Disallow edit for rows in NSOutlineView
- From: Fredrik Olsson <email@hidden>
- Date: Thu, 15 Jun 2006 17:37:49 +0200
James Bucanek skrev:
Fredrik Olsson wrote on Thursday, June 15, 2006:
I can disallow drag and drop, and selection of rows in an outline view,
but how can I disallow the user to edit some rows?
A logiclal delegate method would be
-outlineView:shouldBeginEditingItem:forTableColumn:
But I can not find anything resembling that in the documentation, nor
google :/.
Sorry about that last post: I was rushing becuase I wanted to get my coffee, and as soon as I had I realized that my post was completely wrong.
This is the delegate method you're looking for:
- (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item
Thanks allot!
Is there a list for what methods from NSTableView NSOutlineView uses and
what methods are irrelevant? As many methods looks to be replaced but
with outlineView... instead of tableView... in the name.
// Fredrik
<file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSOutlineView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/outlineView:shouldEditTableColumn:item:>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden