Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 18th, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. objC Preprocessor NSString Macro
  2. #define ObjectKeyMake(NAME) @"com.test.##NAME"
  3.        
  4. NSLog(@"%@", ObjectKeyMake(foo)); // com.test.##NAME
  5.        
  6. NSString* greeting = @"Hello, " "world";
  7.        
  8. #define ObjectKeyMake(NAME) (@"com.test." #NAME)