0

Possible Duplicate:
What is a Protocol

hi,

how to use protocol in Objective-c ? what is the advantage of it .?

Thank and regards+

Community
  • 1
  • 1
jaleel
  • 1,169
  • 8
  • 22
  • 46

1 Answers1

7

Protocols have many advantages. The idea is to provide a way for classes to share the same method and property declarations without inheriting them from a common ancestor. This is especially useful in Objective-C when using the delegation pattern, on which the iOS and Mac OS SDKs rely heavily. There's plenty of information out there on the subject, including a good overview in Apple's developer documentation.

Cameron Spickert
  • 5,190
  • 1
  • 27
  • 34