• 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: Protocol variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Protocol variables
      • From: Julian Pellico <email@hidden>
References: 
 >Protocol variables (From: "Theodore H. Smith" <email@hidden>)
 >Re: Protocol variables (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Serveral selectors of my controller are not called
  • Next by Date: Re: -alloc -init of an Object Instance Variable? Resolved
  • Previous by thread: Re: Protocol variables
  • Next by thread: Re: Protocol variables
  • Index(es):
    • Date
    • Thread