views:

82

answers:

3

What are all of the symbols in obj-c? Like %@, %d, etc. What do they all mean? Thanks

+1  A: 

They are called Format Specifiers.

Eiko
+6  A: 

%@ and %d are format specifiers.

NSString supports the format characters defined for the ANSI C function printf(), plus @ for any object. If the object responds to the descriptionWithLocale: message, NSString sends that message to retrieve the text representation, otherwise, it sends a description message.

See also: Apple Documentation – FormatStrings.html

The MYYN
A: 

The best response is in the Mac Os X Refrence library.

The big difference between C and Objective C is the %@ symbols. The %@ print as string the return of descriptionWithLocale of an object if available.

ohe
Funny, all this time I thought the big difference between C and Objective-C was that Objective-C had an object system...
Laurence Gonsalves
Indeed.... i mean big difference for format specifiers ....
ohe