daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // clang selectors.m -framework Foundation
  2.  
  3. #import <Foundation/Foundation.h>
  4.  
  5.  
  6. #pragma mark Foo
  7.  
  8. @interface Foo : NSObject
  9. - (void)intricacy:(id)n;
  10. @end
  11.  
  12. @implementation Foo
  13. - (void)intricacy:(id)n {
  14.     NSLog(@"Foo::intricacy - %@", n);
  15. }
  16. @end
  17.  
  18.  
  19.  
  20. #pragma mark Bar
  21.  
  22. @interface Bar : NSObject
  23. - (void)intricacy:(int)n;
  24. @end
  25.  
  26. @implementation Bar
  27. - (void)intricacy:(int)n {
  28.     NSLog(@"Bar::intricacy - %d", n);
  29. }
  30. @end
  31.  
  32.  
  33.  
  34. int main() {
  35.     @autoreleasepool {
  36.         id foo = [[Foo alloc] init];
  37.         [foo intricacy:foo];
  38.     }
  39.  
  40.     return 0;
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top