|
From: | Andreas Höschler |
Subject: | Re: Replacement for descriptionForInstanceMethod: |
Date: | Tue, 8 May 2018 19:26:17 +0200 |
Hi Fred,
@protocol TestProtocol - (void)doIt; @end Protocol *_protocol = @protocol(TestProtocol); SEL aSelector = @selector(doIt); struct objc_method_description _methodDescription = protocol_getMethodDescription(_protocol, aSelector, NO, YES); if (_methodDescription.name == NULL) _methodDescription = protocol_getMethodDescription(_protocol, aSelector, NO, NO); NSLog(@"_methodDescription.name %@", NSStringFromSelector(_methodDescription.name)); Where is the ancestry here? Isn't "doIt" defined directly in this example? Thanks, Andreas |
[Prev in Thread] | Current Thread | [Next in Thread] |