Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-22 Thread Shane Stanley
On 22/08/2013, at 3:42 PM, Graham Cox graham@bigpond.com 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

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-22 Thread Graham Cox
On 22/08/2013, at 9:43 AM, Shane Stanley sstan...@myriad-com.com.au 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

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-22 Thread Shane Stanley
On 22/08/2013, at 5:59 PM, Graham Cox graham@bigpond.com 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,

-[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Shane Stanley
I've seen lots of references to this on the Web, but nothing that seems relevant to what I'm seeing. I've had a report of this happening in my app, and I've seen it once myself -- it's not exactly repeatable. The method in question is an undo method, and the crash was not provoked by undoing.

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Graham Cox
On 21/08/2013, at 1:24 PM, Shane Stanley sstan...@myriad-com.com.au 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

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Shane Stanley
On 21/08/2013, at 10:03 PM, Graham Cox graham@bigpond.com 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

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

Re: -[NSProxy doesNotRecognizeSelector: error

2013-08-21 Thread Shane Stanley
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!'

Re: -[NSProxy doesNotRecognizeSelector: error

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