On 21/08/2013, at 11:51 PM, Graham Cox <graham....@bigpond.com> wrote:

> So what's the actual error (the title of the email seems incomplete)?

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '*** -[NSProxy doesNotRecognizeSelector:unCompileWith:at:and:] called!'
terminate called throwing an exception

> 
> If NSProxy is the receiver, that's most likely the NSProxy that NSUndoManager 
> returns from -prepareWithInvocationTarget: The proxy should forward 
> absolutely everything to the NSUndoManager, except possibly certain messages 
> that for some reason it is excluding for reasons of its own. If you can 
> determine exactly what the message is, look for the same one following a 
> -prepareWithInvocationTarget: and you should have your culprit.

Right, that's the method I posted earlier. I just can't see any problem with 
it. The target is not likely to disappear.
> 
> Debugging Undo issues can be a real PITA, which is one reason I wrote a 
> drop-in replacement, GCUndoManager (http://apptree.net/gcundomanager.htm). It 
> gives you the chance to at least see what's going on even though its 
> implementation is very different from NSUndoManager's.

Thanks for the pointer. Most of my undoing is coming for free via text views -- 
is that likely to be a problem with GCUndoManager?


-- 
Shane Stanley <sstan...@myriad-com.com.au>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to