Re: NSTableView edit problem
Re: NSTableView edit problem
- Subject: Re: NSTableView edit problem
- From: Andréas Saudemont <email@hidden>
- Date: Wed, 20 Oct 2004 13:33:56 +0200
Peter,
On Wed, 20 Oct 2004 11:24:48 +0200, Peter Karlsson <email@hidden> wrote:
>
When I doubleclick my tableview I can edit the text in a row. But when the
>
editing is finished and I press enter it will not close the editing
>
session. What happens is that the edited text is selected. But if I click
>
the mouse in the table the editing will end. Something seems to be missing
>
in my code. Must I send som sort of message to tell that the editing is
>
finished?
What you need is to create a subclass of NSTableView and overwrite the
textDidEndEditing: delegate method. For details, see NSTableView's
textDidEndEditing: method's documentation and listing 2, "Forcing the
end of editing" at:
http://developer.apple.com/documentation/Cocoa/Conceptual/TextEditing/Tasks/BatchEditing.html
Andréas
--
http://andreassaudemont.net/
_______________________________________________
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