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

Re: doesNotRecognizeSelector exception


  • Subject: Re: doesNotRecognizeSelector exception
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 26 Mar 2011 19:37:06 -0700

On Sat, Mar 26, 2011 at 7:35 PM, Sherm Pendley <email@hidden> wrote:
> The delegate message is being sent to an instance of UIView - not to
> your controller. That would indicate that the first argument you're
> sending to -initWithDelegate:withContext: is not what it should be.

Or nobody's retaining the delegate, and therefore it's being replaced
in memory with the UIView instance. The reason delegates are
unretained in Cocoa is because they typically have a strong reference
to the thing they are a delegate of.

--Kyle Sluder
_______________________________________________

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: doesNotRecognizeSelector exception
      • From: Jeffrey Walton <email@hidden>
References: 
 >doesNotRecognizeSelector exception (From: Jeffrey Walton <email@hidden>)
 >Re: doesNotRecognizeSelector exception (From: Kyle Sluder <email@hidden>)
 >Re: doesNotRecognizeSelector exception (From: Jeffrey Walton <email@hidden>)
 >Re: doesNotRecognizeSelector exception (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: doesNotRecognizeSelector exception
  • Next by Date: Re: doesNotRecognizeSelector exception
  • Previous by thread: Re: doesNotRecognizeSelector exception
  • Next by thread: Re: doesNotRecognizeSelector exception
  • Index(es):
    • Date
    • Thread