Type Declaration With Protocol
Type Declaration With Protocol
- Subject: Type Declaration With Protocol
- From: Richard Somers <email@hidden>
- Date: Fri, 13 Mar 2009 22:13:22 -0600
The Objective-C 2.0 Programming Language documentation indicates that
a type declaration for an object including a formal protocol should
look something like this.
id <Protocol> anObject;
I have been studying some sample code that does it like this.
NSObject <Protocol> *anObject;
What is the difference between the two?
Richard
_______________________________________________
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