Re: -[NSProxy doesNotRecognizeSelector: error
Re: -[NSProxy doesNotRecognizeSelector: error
- Subject: Re: -[NSProxy doesNotRecognizeSelector: error
- From: Shane Stanley <email@hidden>
- Date: Thu, 22 Aug 2013 09:03:03 +1000
On 21/08/2013, at 11:51 PM, Graham Cox <email@hidden> 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 <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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