FROM : James Bucanek
DATE : Thu Jun 15 17:00:15 2006
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
<file:///Developer/ADC%20Reference%20Library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSOutlineView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/outlineView:shouldEditTableColumn:item:>
--
James Bucanek
DATE : Thu Jun 15 17:00:15 2006
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
<file:///Developer/ADC%20Reference%20Library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSOutlineView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/outlineView:shouldEditTableColumn:item:>
--
James Bucanek
| Related mails | Author | Date |
|---|---|---|
| Fredrik Olsson | Jun 15, 09:46 | |
| James Bucanek | Jun 15, 16:46 | |
| James Bucanek | Jun 15, 17:00 | |
| Fredrik Olsson | Jun 15, 17:37 | |
| James Bucanek | Jun 15, 20:05 |






Cocoa mail archive

