• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableView edit problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTableView edit problem (From: "Peter Karlsson" <email@hidden>)

  • Prev by Date: Re: file type check method
  • Next by Date: From Xcode 1.5, NSController cannot be saved using pre-10.2 nib file.
  • Previous by thread: NSTableView edit problem
  • Next by thread: From Xcode 1.5, NSController cannot be saved using pre-10.2 nib file.
  • Index(es):
    • Date
    • Thread