Hi all, Is it possible to get the name of a class into a string like this:
NSString *kls = (NSString *)[self.name class];
NSLog(@"%@", [kls isKindOfClass:[NSString class]] ? @"YES" : @"NO");
I can do: NSString *kls = [[[NSString alloc]initWithFormat:@"%@", [self.name class]]autorelease];
but that seems a bit long-winded to me. It's not for any task in particular, I'm just trying to learn more about the language as I go.
thanks for reading.