• 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
Seeking advice re: placement of UndoManager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seeking advice re: placement of UndoManager


  • Subject: Seeking advice re: placement of UndoManager
  • From: Erik Stainsby <email@hidden>
  • Date: Sun, 02 Sep 2012 15:10:59 -0700

I am questioning where in the app I ought to locate my UndoManager code:

1) in the model classes?
2) in window controller class?
3) on its own as a controller-mediator class?

The model is kvo compliant and so will be notified by observing itself. It has to broker the changes into the persistent store. Seems like a good locale to capture undo requirements. However it also seems like this is more a controller logic piece of the puzzle and as such doesn't really belong in the model classes.

Advice from those who know would be much appreciated.


Erik Stainsby
email@hidden



_______________________________________________

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: Seeking advice re: placement of UndoManager
      • From: Graham Cox <email@hidden>
    • Re: Seeking advice re: placement of UndoManager
      • From: Erik Stainsby <email@hidden>
  • Prev by Date: Re: NSDocument package saving invalidates wrapper? Options?
  • Next by Date: Re: Prevent display of PDF controls in a WebView
  • Previous by thread: Re: Code Signing for Mountain Lion
  • Next by thread: Re: Seeking advice re: placement of UndoManager
  • Index(es):
    • Date
    • Thread