• 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
Correct way to commit pending text field edits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correct way to commit pending text field edits?


  • Subject: Correct way to commit pending text field edits?
  • From: Graham Cox <email@hidden>
  • Date: Fri, 25 Jul 2008 12:23:44 +1000

I have a window with a bunch of text fields. I also have an "Apply" button which takes the current settings and applies them to the data model.

If I have edited text in a field but not hit return or tab or anything else that triggers target/action, the edit is ignored. So I need a way to commit any such pending edits as part of my response to the "Apply" button. It's not clear what the right way to do that is. I know about the Field Editor, but the various methods that pertain to it seem to be rather low level. I'd sort of expect to see some sort of "validate and commit pending edits" method at the window/window controller level that takes care of figuring out which control is focused, etc. Since there doesn't appear to be one, what should I use to write one?

tia,

cheers, Graham
_______________________________________________

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: Correct way to commit pending text field edits?
      • From: Ken Thomases <email@hidden>
    • Re: Correct way to commit pending text field edits?
      • From: chaitanya pandit <email@hidden>
    • Re: Correct way to commit pending text field edits?
      • From: "Ken Ferry" <email@hidden>
  • Prev by Date: Re: linking NSArrayController and Undo manager
  • Next by Date: Re: Fancy drag & drop
  • Previous by thread: Re: Drawing a drop-shadow around a view
  • Next by thread: Re: Correct way to commit pending text field edits?
  • Index(es):
    • Date
    • Thread