On 2009 Dec 15, at 16:15, Graham Cox wrote: > You should probably arrange for the thread to submit its undo tasks to the > undo manager on the main thread,
Indeed, NSUndoManager is not thread-safe. I use one of the -performSelectorOnMainThread... methods in this situation. Watch for deadlocks :) > At that point you'll probably start to run into the numerous bugs and > glitches that NSUndoManager suffers from, and start to tear out your hair. > That's been mine and others' experiences anyway. Download some apps that have won Apple Design Awards, then try and undo and redo a dozen actions. If you can get past 5 or 6 most of the time, you're doing pretty good._______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com