| Symbol | Displays |
| %@ | id |
| %d, %D, %i | long |
| %u, %U | unsigned long |
| %hi | short |
| %hu | unsigned short |
| %qi | long long |
| %qu | unsigned long long |
| %x, %X | unsigned long printed as hexidecimal |
| %o, %O | unsigned long printed as octal |
| %f, %e, %E, %g, %G | double |
| %c | unsigned char as ASCII character |
| %s | char * (a null-terminated C string of ASCII characters) |
| %S | unichar * (a null-terminated C string of Unicode characters) |
| %p | void * (an address printed in hexidecimal with a leading 0x |
| % % | A % character |
| @"Any text you want" | prints some message you define |
펌 : http://computermusicresource.com/xcode/cocoasyntax/nslog.html
참고 : http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265
Format specifiers




덧글