• 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
Plugin Architecture + Core Data, Undo Manager
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Plugin Architecture + Core Data, Undo Manager


  • Subject: Plugin Architecture + Core Data, Undo Manager
  • From: Keith Duncan <email@hidden>
  • Date: Sun, 18 Mar 2007 01:24:10 +0000

I'm writing an app with a complex plugin architecture. The plugins are all going to use Core Data. I need undo to work for any selected plugin i.e not cross-plugin just up to the last change in selection.

As in any standard Core Data application the app delegate returns the undo manager for its managedObjectContext - but I need it to return an undo manager depending on which plugin is selected and to observe the change in undo manager when a new plugin is selected from the source list. The problem is that NSWindow doesn't have a - setUndoManager method.

One way I did think of would be to rearchitect the plugins to use a single shared managed object context - giving me a single undo manager. But I want to store the plugin data separately so that errors in one plugins' store doesn't adversely affect the others and this would prevent the plugins from running in their own thread.

Am I going about this the wrong way? Is there a simpler way to achieve it?

- Keith
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: NSAttributedString with NSTextTable Can not save with NSArchiver Suggestions
  • Next by Date: Standby: Handling going into and coming out from standby
  • Previous by thread: NSAttributedString with NSTextTable Can not save with NSArchiver Suggestions
  • Next by thread: Standby: Handling going into and coming out from standby
  • Index(es):
    • Date
    • Thread