• 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: -[NSProxy doesNotRecognizeSelector: error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSProxy doesNotRecognizeSelector: error


  • Subject: Re: -[NSProxy doesNotRecognizeSelector: error
  • From: Graham Cox <email@hidden>
  • Date: Wed, 21 Aug 2013 15:51:01 +0200

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 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.

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.

--Graham



On 21/08/2013, at 2:58 PM, Shane Stanley <email@hidden> wrote:

> On 21/08/2013, at 10:03 PM, Graham Cox <email@hidden> 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 added to the document with -addWindowController: in its -makeWindowControllers method. Pretty basic. I would have thought it wouldn't go away as long as its window is open.


_______________________________________________

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


  • Follow-Ups:
    • Re: -[NSProxy doesNotRecognizeSelector: error
      • From: Shane Stanley <email@hidden>
References: 
 >-[NSProxy doesNotRecognizeSelector: error (From: Shane Stanley <email@hidden>)
 >Re: -[NSProxy doesNotRecognizeSelector: error (From: Graham Cox <email@hidden>)
 >Re: -[NSProxy doesNotRecognizeSelector: error (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Variable Number of Parameters in Method
  • Next by Date: Re: Cocoa-dev Digest, Vol 10, Issue 522
  • Previous by thread: Re: -[NSProxy doesNotRecognizeSelector: error
  • Next by thread: Re: -[NSProxy doesNotRecognizeSelector: error
  • Index(es):
    • Date
    • Thread