Hi all,
I define protocol with a method name is:
- (id)initWithDelegate:(id <Foo>)delegate;
While in my project, there also has a third party protocol (in different class):
- (id)initWithDelegate:(NSObject *)delegate;
In another class, which imports both protocols, I just use the second method:
id thirdPartyObject = [[ThirdPartyClass alloc] initWithDelegate:self];
but XCode display an error: self is not conform <Foo>
protocol, while self don't need to conform that protocol.
How to avoid this naming conflict?