Re: Core Data and undo action names
Re: Core Data and undo action names
- Subject: Re: Core Data and undo action names
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 22 Aug 2005 20:46:09 -0400
on 2005-08-22 12:07 PM, Guy English at email@hidden wrote:
> You could try subclassing NSUndoManager. Allow only the first setActionName:
> after beginUndoGrouping:.
> Or keep additional state to know if you've set an action name yet and make
> decisions based on that. If you're not grouping by event things would be
> harder ...
That's an interesting idea. But I once spent a lot of time monkeying with
NSUndoManager and I don't fancy doing it again. It's too full of black
magic.
So far, I'm finding that special logic for each situation works fine and is
easy to understand and thus to maintain. It's just that it takes a lot of
time.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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