Instance Property

description

Returns a string that describes the contents of the receiver.

Required.

Declaration

@property(readonly, copy) NSString *description;

Return Value

A string that describes the contents of the receiver.

Discussion

This method is used to create a textual representation of an object, for example in a formatted string:

ClassName *anObject = <#An object#>;
NSString *string = [NSString stringWithFormat:@"anObject is %@", anObject];

See Also

Describing Objects

debugDescription

Returns a string that describes the contents of the receiver for presentation in the debugger.