• 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: Correct Bindings Practices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct Bindings Practices


  • Subject: Re: Correct Bindings Practices
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 22 Jan 2010 07:00:30 -0800

On 2010 Jan 21, at 04:02, Quincey Morris wrote:

> The other issue that needs care in regard to both your questions is undo. When setters do a lot of work, you need to be careful about what happens at undo or redo time.

Quincey gives good advice here as usual.  In particular, the undo invocations registered by Core Data will not re-invoke your setters.  They just change the model.  So it's OK if your custom setters modify other (dependent) properties in your data model, because these will be redone by their own undo invocations.  But don't put, for example, dependent changes to your user interface in your custom setters.  Add observers and use KVO for these.

_______________________________________________

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

References: 
 >Correct Bindings Practices (From: Chase Meadors <email@hidden>)
 >Re: Correct Bindings Practices (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: UIImageView display as "multiply"?
  • Next by Date: KVO and object release timing (for a NSCollectionView)
  • Previous by thread: Re: Correct Bindings Practices
  • Next by thread: Best practices for using standard window widgets in a custom window
  • Index(es):
    • Date
    • Thread