• 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 isn't id<MyCellDelegate> an id?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why isn't id<MyCellDelegate> an id?


  • Subject: Re: why isn't id<MyCellDelegate> an id?
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 04 Oct 2013 10:26:00 -0700

> On Oct 4, 2013, at 9:59 AM, Matt Neuburg <email@hidden> wrote:

>
> But why is either of those necessary? Surely an id<MyCellDelegate> is, by definition, an id

Nope. A couple years back the type of id<SomeProtocol> was changed to only respond to the methods in the protocol. This is arguably much more useful, since otherwise the difference between id and id<Protocol> is so minute to almost not exist.

The recommended practice is to make your protocols derive from <NSObject>, which is now part of Xcode’s autocompletion template for @protocol.

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


References: 
 >why isn't id<MyCellDelegate> an id? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: why isn't id<MyCellDelegate> an id?
  • Next by Date: Re: why isn't id<MyCellDelegate> an id?
  • Previous by thread: Re: why isn't id<MyCellDelegate> an id?
  • Next by thread: Re: why isn't id<MyCellDelegate> an id?
  • Index(es):
    • Date
    • Thread