• 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
Protocols and Classes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Protocols and Classes


  • Subject: Protocols and Classes
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Thu, 6 Nov 2003 15:05:40 -0800

If I have a class:

Class *myClass = ... ;

How can I determine if myClass adopts a protocol pProtocol?

I know I can get the name of the class using NSStringFromClass(), but how about a list of the formal protocols it adopts? Or do I have to test to see if it responds to the selectors that I need?


Mike R. Manzano - alephx01 (at) mac (dot) com

"It makes me mad when people say I turned and ran like a scared rabbit. Maybe it was like an angry rabbit, who was running to go fight in another fight, away from the first fight." -- Jack Handey
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Protocols and Classes
      • From: j o a r <email@hidden>
    • RE: Protocols and Classes
      • From: "Jonathan E. Jackel" <email@hidden>
  • Prev by Date: Distributed Test Project
  • Next by Date: Re: Zero link in deployment build?
  • Previous by thread: Re: Distributed Test Project
  • Next by thread: RE: Protocols and Classes
  • Index(es):
    • Date
    • Thread