• 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: respondsToSelector & "warning: may not respond"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: respondsToSelector & "warning: may not respond"


  • Subject: Re: respondsToSelector & "warning: may not respond"
  • From: Andy Lee <email@hidden>
  • Date: Sat, 27 Nov 2010 12:46:44 -0500

On Nov 27, 2010, at 12:35 PM, David Duncan <email@hidden> wrote:

>  fortunately you can declare that your protocol inherits from another, and there is also an NSObject protocol that defines the core functionality of the class, so you can do this when you declare your protocol and never need to worry about "NSObject<someProtocol>"
>
> @protocol SomeProtocol : NSObject
> // stuff

AFAIK protocols don't inherit from each other but rather conform to each other, meaning the above should be

@protocol SomeProtocol <NSObject>

But maybe I'm just unaware of new syntax in the latest compiler?

--Andy

_______________________________________________

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: respondsToSelector & "warning: may not respond"
      • From: David Duncan <email@hidden>
References: 
 >respondsToSelector & "warning: may not respond" (From: Mikkel Eide Eriksen <email@hidden>)
 >Re: respondsToSelector & "warning: may not respond" (From: Mikkel Eide Eriksen <email@hidden>)
 >Re: respondsToSelector & "warning: may not respond" (From: Mike Abdullah <email@hidden>)
 >Re: respondsToSelector & "warning: may not respond" (From: Dave Zwerdling <email@hidden>)
 >Re: respondsToSelector & "warning: may not respond" (From: David Duncan <email@hidden>)

  • Prev by Date: Re: respondsToSelector & "warning: may not respond"
  • Next by Date: Re: respondsToSelector & "warning: may not respond"
  • Previous by thread: Re: respondsToSelector & "warning: may not respond"
  • Next by thread: Re: respondsToSelector & "warning: may not respond"
  • Index(es):
    • Date
    • Thread