• 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
commitEditing not working with NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

commitEditing not working with NSTextView


  • Subject: commitEditing not working with NSTextView
  • From: John Spicer <email@hidden>
  • Date: Thu, 2 Dec 2004 10:38:18 -0600

I have a few fields on a window. One of them is an NSTextView, the rest are NSTextField.

I have an NSObjectController  with keys for each.

Since I want to capture anything the user types, I call [theController commitEditing] before I save it to disk.

The NSTextView does not commit it's changes unless you shift-tab out of that field into another.

I don't understand why. I also can't connect it to my controller object (ie to a method) that would tell me when the text changes (but I can do it with all the NSTextField items).

The window does get marked as dirty as soon as I type a character in the field, so I know someone is getting the message!

Any help appreciated.

_______________________________________________
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


  • Prev by Date: Re: NSPanel and stopModal - how to focus on the main window again?
  • Next by Date: Re: Event loop
  • Previous by thread: Re: textShouldNotEvenThinkAboutEndEditingIfItKnowsWhatIsGoodForIt
  • Next by thread: NSOutlineView not releasing expanded items
  • Index(es):
    • Date
    • Thread