• 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
Commit Editing Changes as I Type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Commit Editing Changes as I Type


  • Subject: Commit Editing Changes as I Type
  • From: cocoa-dev <email@hidden>
  • Date: Tue, 5 Jan 2010 17:50:12 -0500

I have two controls (NSTextField and a NSTableView column) that are bound to the same attribute in core data. I've set up a timer that starts after the NSTextField starts editing and I'd like it to periodically commit the editing as the user is typing. If the user hits the Enter key I do see the text in both places but I want those updates to go as the user is typing so the text will show in both fields as the typing is happening.

When my timer launches I tried calling:

[myTextField commitEditing] // but this didn't work, nothing happened.

I then tried:

[[myTextField window] endEditingFor:nil] // which worked but the NSTextField loses focus so that's not a good solution.

Any ideas?_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Commit Editing Changes as I Type
      • From: Wyatt Webb <email@hidden>
    • Re: Commit Editing Changes as I Type
      • From: Kiel Gillard <email@hidden>
    • Re: Commit Editing Changes as I Type
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: NSXMLParser question about duplicate nodes
  • Next by Date: Looking tutorials or blogs on NSOutlineView & NSTreeController . . .
  • Previous by thread: Re: NSBitMapImageRep Woes
  • Next by thread: Re: Commit Editing Changes as I Type
  • Index(es):
    • Date
    • Thread