libextobjc
libextobjc copied to clipboard
EXTConcreteProtocol:Model Confirm Protocol Duplicate Symbol
Thanks for wanting to contribute to this project!
Unfortunately, it's not really maintained anymore.
Feel free to use it as-is, or fork it and modify as much as you want to suit your needs. However, I can't guarantee that I'll have time/energy to look at new issues and pull requests.
Sorry for the trouble!
Hi, I used EXTConcreteProtocol to extend my protocol. I met a question when I used it. When used liked this #import <EXTConcreteProtocol.h> @protocol TestProtocol @concrete
- (void)changed; @end
@concreteprotocol(TestProtocol)
- (void)changed { NSLog(@"Update"); } @end interface TestObject:NSObject<TestProtocol> @end @implementation TestObject @end
int main(int argc, const char * argv[]) { @autoreleasepool { TestObject *object = [TestObject new]; [object buzz]; } return 0; }
it worked well.
======
But when I used in a single application like let TestObject confirm TestProtocol, and I used it on my viewController, then, it cannot be complied success.
Further, I let my viewController confirm TestProtocol, call function buzz in viewDidLoad, it worked.
I found another git repository called ProtocolKit, which call do same work like EXTConcreteProtocol. Maybe I have problem in using protocol.
I create a repository here to describe my question: [email protected]:tangzzz-fan/TGTestProtocol.git
Thanks advanced.