NSDictionary *dict = [NSDictionary dictionary]; NSLog(@\"%@\", NSStringFromClass([dict class]));
This code prints \"__NSDictionary0\".
For my
NSDictionary is a class cluster. Read about them here:
Cocoa Fundamentals Guide
As the "actual" class itself is private, no, it is not safe to depend on this.
If you need to know if your class is really an NSDictionary or not, use [dict isKindOfClass:[NSDictionary class]];
[dict isKindOfClass:[NSDictionary class]];