Complex control of cell editing in an outline view
Complex control of cell editing in an outline view
- Subject: Complex control of cell editing in an outline view
- From: Ian Gillespie <email@hidden>
- Date: Sat, 3 May 2003 18:04:07 -0700
I searched the archives and documentation and got some good ideas, but
I can't figure out where to go next.
The following is in regards to an outline:
What I want to do is make it so that when the user presses the tab key
the next cell in a row gets edited until the last cell in a row is
being edited (this is the default behavior), THEN I want the tab key to
start editing a cell one level down in an outline view. If the user is
editing a child in the outline and tabs all the way over and there are
no more rows below, except for a parent, then the editing stops.
I over-rode textDidEndEditing in my subclassed outline view and used
the dictionary hacks
(
http://lists.apple.com/archives/cocoa-dev/2002/Jun/16/
stopeditingcellsintablev.001.txt) to make it so that hitting return
ends editing instead of editing the next cell down.
My guess is that I have to call NSCell's - (void) editWithFrame:
(NSRect) aRect inView: (NSView *) controlView editor: (NSText *)
textObj delegate: (id) anObject event: (NSEvent *) theEvent method in
my textDidEndEditing method in my sub-classed outline, but I don't know
what to pass it for the arguments.
Thanks and regards,
Ian
_______________________________________________
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.