I\'d like to override the default print function in NSLog for custom objects;
For example:
MyObject *myObject = [[MyObject alloc] init]; NSLog(@\"Thi
Just implement the description method.
description
- (NSString *)description { return @"MyCustomDescription"; }
This is the method used to print an instance.
Override -description in your custom class.
-description