The default description for the class instance returns "ClassName: 0x105120". How do I change the method below to just return "ClassName"?
EDIT: in this case will it be correct? Although I understand that if I want to get the class name as NSString, I have to use NSStringFromClass ([self class])
- (id)init { NSLog(@"_init: %@", [self class]); [super init]; return self; }
thanks in advance -gary -
objective-c nsstring
fuzzygoat
source share