• 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: Core Data and undo action names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Core Data and undo action names (From: Guy English <email@hidden>)

  • Prev by Date: Partial redraw of NSTableView
  • Next by Date: Code signing
  • Previous by thread: Re: Core Data and undo action names
  • Next by thread: Re: Core Data and undo action names
  • Index(es):
    • Date
    • Thread