• 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: Why am I getting May Not Respond warnings for Super
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why am I getting May Not Respond warnings for Super


  • Subject: Re: Why am I getting May Not Respond warnings for Super
  • From: Philip Dow <email@hidden>
  • Date: Thu, 21 Jul 2011 11:40:06 -0500

NSCopying is a protocol, likewise NSCoding. Have you declared that your class implements the protocol in the header file, for example:

@interface MySuperClass : NSObject <NSCopying, NSCoding> {
	...
}
...
@end

~Phil

On Jul 21, 2011, at 10:51 AM, Chris Tracewell wrote:

> I have a private framework that is included in a project. Many of the project classes descend from a class in the framework. All of these descendent classes implement copyWithZone, encodeWithCoder and initWithCoder and thus respectively calls each on super. I get warnings stating that "MySuperClass may not respond to -copyWithZone" and so on. I do declare each of these methods in super's header file, so why might these errors be getting triggered?
>
> Thanks
>
>
> --Chris_______________________________________________
>
> 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

_______________________________________________

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

References: 
 >Why am I getting May Not Respond warnings for Super (From: Chris Tracewell <email@hidden>)

  • Prev by Date: Re: Windows get released on 10.6, leak on 10.7
  • Next by Date: Re: Windows get released on 10.6, leak on 10.7
  • Previous by thread: Re: Why am I getting May Not Respond warnings for Super
  • Next by thread: Re: Why am I getting May Not Respond warnings for Super
  • Index(es):
    • Date
    • Thread