• 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: How to control the commit of text edit field with binding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to control the commit of text edit field with binding?


  • Subject: Re: How to control the commit of text edit field with binding?
  • From: "Jordan Krushen" <email@hidden>
  • Date: Sat, 6 May 2006 16:11:55 -0700

On 5/6/06, James Bucanek <email@hidden> wrote:

On reflection, there might be a generalized solution possible. If I run into this again, I'm going to consider creating a subclass of NSObjectController and adding a transparent/buffered mode to the object. In transparent mode, everything works like a regular NSObjectController; all notifications of value changes are passed to the appripriate reciever. But in buffered mode, changes to values receives from the view would simply be stored in a dictionary and not passed to the model. When the view is ready, all of the buffered changes could be sent to the model en mass or discarded.

Isn't that exactly what NSUserDefaultsController's -setAppliesImmediately:, -hasUnappliedChanges, -revert, -save etc. do?

J.
_______________________________________________
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: How to control the commit of text edit field with binding?
      • From: Brian Stern <email@hidden>
    • Re: How to control the commit of text edit field with binding?
      • From: James Bucanek <email@hidden>
References: 
 >Re: How to control the commit of text edit field with binding? (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: How to control the commit of text edit field with binding?
  • Next by Date: Re: How to control the commit of text edit field with binding?
  • Previous by thread: Re: How to control the commit of text edit field with binding?
  • Next by thread: Re: How to control the commit of text edit field with binding?
  • Index(es):
    • Date
    • Thread