/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

  1. @interface MyClass : NSObject
  2. -(BOOL)areTheNewViewersGoneYet:(Duck*)duck;
  3. @end
  4. ...
  5. MyClass *myInstance = [[MyClass alloc] init];
  6. id invocationGrabber = [[[SPInvocationGrabber alloc] initWithTarget:myInstance] autorelease];
  7. [invocationGrabber areTheNewViewersGoneYet:[Duck yellowDuck]]; // line 9
  8. NSInvocation *invocationForAreTheNewViewersGoneYet = [invocationGrabber invocation];