/thirdparty/SPMediaKeyTap/SPInvocationGrabbing/gistfile4.m
http://github.com/tomahawk-player/tomahawk · Objective C · 12 lines · 8 code · 4 blank · 0 comment · 0 complexity · 4a243c33e49a1d8b7212def259a1873a MD5 · raw file
- @interface MyClass : NSObject
- -(BOOL)areTheNewViewersGoneYet:(Duck*)duck;
- @end
- ...
- MyClass *myInstance = [[MyClass alloc] init];
- id invocationGrabber = [[[SPInvocationGrabber alloc] initWithTarget:myInstance] autorelease];
- [invocationGrabber areTheNewViewersGoneYet:[Duck yellowDuck]]; // line 9
- NSInvocation *invocationForAreTheNewViewersGoneYet = [invocationGrabber invocation];