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

-[NSProxy doesNotRecognizeSelector: error


  • Subject: -[NSProxy doesNotRecognizeSelector: error
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 21 Aug 2013 21:24:52 +1000

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.

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. scriptViewContents is the text storage of two text views. I'm using ARC.

The actual line of code is:

[[[[self window] undoManager] prepareWithInvocationTarget:self] unCompileWith:[[doc scriptViewContents] copy] at:sel1 and:sel2];

It's called in a block using:

 [[NSOperationQueue mainQueue] addOperationWithBlock:^{

And the method sig is:

-(void)unCompileWith:(NSAttributedString *)attString at:(NSRange)sel1 and:(NSRange)sel2

I'm perplexed as to where to start looking.

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


  • Follow-Ups:
    • Re: -[NSProxy doesNotRecognizeSelector: error
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Variable Number of Parameters in Method
  • Next by Date: Re: Variable Number of Parameters in Method
  • Previous by thread: Re: Variable Number of Parameters in Method
  • Next by thread: Re: -[NSProxy doesNotRecognizeSelector: error
  • Index(es):
    • Date
    • Thread