• 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: NSUndoManager issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSUndoManager issues (From: Scott Squires <email@hidden>)
 >Re: NSUndoManager issues (From: Graham Cox <email@hidden>)

  • Prev by Date: Highlighting a row in an NSTableView
  • Next by Date: Re: Managed Object with Transformable Attribute (C Struct)
  • Previous by thread: Re: NSUndoManager issues
  • Next by thread: CGEventCreateMouseEvent - iPhone as remote control for Mac
  • Index(es):
    • Date
    • Thread