Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-22 Thread Shane Stanley
On 22/08/2013, at 5:59 PM, Graham Cox wrote: > I suggest logging 'self' at the point you set up your undo. If you can > trigger the bug, then this will tell you what the real object responsible for > the exception is - at the moment NSProxy is hiding it from you. Thanks, I'm trying that, altho

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-22 Thread Graham Cox
On 22/08/2013, at 9:43 AM, Shane Stanley wrote: > Not that I can see. Unless… I suggest logging 'self' at the point you set up your undo. If you can trigger the bug, then this will tell you what the real object responsible for the exception is - at the moment NSProxy is hiding it from you.

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-22 Thread Shane Stanley
On 22/08/2013, at 3:42 PM, Graham Cox wrote: > Is there is any possibility that 'self' is not what you think it is? If > that's confused, then the proxy is simply reflecting the fact that the object > 'self' points to doesn't respond to the selector (since its own > -respondsToSelector: method

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Graham Cox
On 22/08/2013, at 1:03 AM, Shane Stanley wrote: > *** Terminating app due to uncaught exception 'NSInvalidArgumentException', > reason: '*** -[NSProxy doesNotRecognizeSelector:unCompileWith:at:and:] > called!' > terminate called throwing an exception > Right, that's the method I posted earlie

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Shane Stanley
On 21/08/2013, at 11:51 PM, Graham Cox 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 thro

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Graham Cox
So what's the actual error (the title of the email seems incomplete)? 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 tha

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Shane Stanley
On 21/08/2013, at 10:03 PM, Graham Cox wrote: > The arguments are retained, but the target is not. Does knowing that make any > difference to your memory managment analysis? I don't think so. The target is the window controller in a document-based app, created with -initWithWindowNibName: and

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Graham Cox
On 21/08/2013, at 1:24 PM, Shane Stanley wrote: > If I understand correctly, the arguments when I use > prepareWithInvocationTarget: are retained. In this case the target is the > document's sole window controller and owner of the nib, so it's not like it's > disappearing. The arguments are