Editing in NSOutlineView
Editing in NSOutlineView
- Subject: Editing in NSOutlineView
- From: Gokul Hegde <email@hidden>
- Date: Mon, 22 Apr 2002 20:13:37 +0530 (GMT+05:30)
Hi everybody
In my application, I am trying to edit the items which I display in
NSOutlineView. When I double click on the items, I am able to edit it. But,
I find that on pressing 'Return', to finish my editing, the next item gets
selected and editing for it begins. (I find the same behaviour in
'DragAndDrop' sample). But I want it to stop editing once I change the name
of the present item being edited and press 'Return'. (as it happens in
'Finder' when we change the name of a file).
I have tried over riding the function
"- (BOOL)outlineview: (NSOutlineView *)outlineView shouldEditTableColumn:
(NSTableColumn *)tableColumn item: (id)item"
in the delegate / datasource for NSOutlineView and returning 'NO' from it.
But I find a very peculier behaviour. This function is called for all the
items displayed and after completing all the items, editing for the item
just before the presently edited item begins!
Has any body found a soulution for this? How do I make the NSOutlineView
stop this editing of next item?
With regards
Gokul
--------------------------------------------------------------
Robosoft Technologies, Mangalore, India
_______________________________________________
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.