Re: Protocol variables
Re: Protocol variables
- Subject: Re: Protocol variables
- From: Prachi Gauriar <email@hidden>
- Date: Mon, 26 Jul 2004 20:56:39 -0500
On Jul 26, 2004, at 4:56 PM, Nick Zitzmann wrote:
On Jul 26, 2004, at 2:53 PM, Theodore H. Smith wrote:
Can an object have a pointer to a protocol?
No, but an object can have a pointer to an object that is ambiguously
typed ("id") but is expected to comply with a protocol. See AppKit's
NSMenu.h header for an example.
Why not? There is a Protocol class (/usr/include/objc/Protocol.h).
Could some of the runtime wranglers shed some light on this?
-Prachi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.