On May 8, 2010, at 3:51 PM, Kevin Callahan wrote: > for example, you can't do this: > > Class classFromString = NSClassFromString(string); > > [classFromString isKindOfClass:[SomeClass class]]; > > I don't want to instantiate classFromString in order to check if it's a > subclass of SomeClass. > > What's the best way to check for class inheritance without instantiating?
Hi Kevin, I think you want the class method +isSubclassOfClass:. --Andy _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com