Re: NSUndoManager issues
Re: NSUndoManager issues
- Subject: Re: NSUndoManager issues
- From: Jerry Krinock <email@hidden>
- Date: Tue, 15 Dec 2009 17:26:52 -0800
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 (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