• 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: When do bound objects get updated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When do bound objects get updated?


  • Subject: Re: When do bound objects get updated?
  • From: Glenn Andreas <email@hidden>
  • Date: Fri, 16 Jul 2004 09:30:25 -0500

At 6:15 AM -0700 7/16/04, Larry Fransson wrote:
On Jul 16, 2004, at 01:11, Darren Ford wrote:

When I save the entries to a file (using NSArchiver), any changes that I've made to the current NSTextView contents don't get written to the file.

Be sure to check the box labeled "Continuously Updates Value" in the bindings inspector panel for the text field. Without that, the new value gets sent only when editing is ended by tabbing out of the field, pressing the return/enter key, or otherwise sending focus to some other part of the interface like when you click on the table.

Of course, if you do this, your undo mechanism can get ugly, since every keystroke then becomes a change.

So if you have a text field that currently contains the number 200 and the user wants to change this to 1024, each of the four characters will result in a new undo action, so after entering 1024 they decide to undo, well, it goes back to 102. A second time brings it back to 10, a third time to 1, and finally the fourth time brings it back 200 (which is what they probably expected).


--
Glenn Andreas email@hidden mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: When do bound objects get updated?
      • From: Scott Anguish <email@hidden>
    • Re: When do bound objects get updated?
      • From: mmalcolm crawford <email@hidden>
References: 
 >When do bound objects get updated? (From: Darren Ford <email@hidden>)
 >Re: When do bound objects get updated? (From: Larry Fransson <email@hidden>)

  • Prev by Date: WebView Background Color ?
  • Next by Date: Re: NSImageRGBColorTable crash
  • Previous by thread: Re: When do bound objects get updated?
  • Next by thread: Re: When do bound objects get updated?
  • Index(es):
    • Date
    • Thread