1

Possible Duplicate:
Why tack a protocol of NSObject to a protocol implementation

Does this mean Foo is conforming to NSObject's protocol? Does Foo have to implement NSObject's protocol methods like when other classes conform to protocols?

@protocol Foo <NSObject>
Community
  • 1
  • 1
stumped
  • 3,235
  • 7
  • 43
  • 76

1 Answers1

0

This just ensures that you add the NSObject members to your protocol, please check out this post:

Why tack a protocol of NSObject to a protocol implementation

Community
  • 1
  • 1
Daniel
  • 23,129
  • 12
  • 109
  • 154
  • Thanks for the link! So let's say the `Foo` protocol didn't conform to `NSObject` and my class `ClassA` conformed to `Foo` and imported `Foundation`. Would the methods in `ClassA` still be able to access methods from `NSObject` since it imported `Foundation`? – stumped Aug 12 '12 at 02:13
  • Protocols don't that much influence on their conforming class. What would happen if `Foo` didn't conform to ``, is that you would be limited to calling only the methods you defined in `Foo's` protocol declaration. No -respondsToSelector, no -retain, no -release, without compiler warnings. – CodaFi Aug 12 '12 at 04:03