> On Oct 4, 2013, at 9:59 AM, Matt Neuburg <m...@tidbits.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to