Getting name of the class from an instance
NSStringFromClass([instance class])
should do the trick.
if all you want to do is test an object to see if it's a type of a certain Class
BOOL test = [self isKindOfClass:[SomeClass class]];
From within the class itself
-(NSString *) className
{
return NSStringFromClass([self class]);
}