• 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
force end of editing and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

force end of editing and bindings


  • Subject: force end of editing and bindings
  • From: Christian Schneider <email@hidden>
  • Date: Fri, 11 Feb 2005 16:55:27 +0100

Hi all,

I've got a text field and a text view in a form. Both are bound to an
object using IB. The content of the form is saved when the user clicks
a button. Now when either the text field or the text view is being
edited when the button is clicked the changes made in the respective
element  will not be propagated to the model.

I know I can force the end of the edit in the text field by pressing
return and in the text view by selecting another interface element but
I can't force users to always take care not to have unsubmitted
changes in the UI.

Now the advantage of bindings is to get rid of unnecessary outlets and
glue code, so I'm looking for a solution that is more elegant than -
when the save button is clicked - explicitly telling my model to use
the current value from my text field and text view.

Any hints?


chris
 _______________________________________________
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

  • Follow-Ups:
    • Re: force end of editing and bindings
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Thread safe Fifo?
  • Next by Date: Re: force end of editing and bindings
  • Previous by thread: Re: mouse events with menus
  • Next by thread: Re: force end of editing and bindings
  • Index(es):
    • Date
    • Thread