On Tue, Feb 10, 2009 at 1:10 PM, Jean-Daniel Dupas <devli...@shadowlab.org> wrote: > Just for the record, you can also compare class, but not with the > isKindOfClass: method. > > The method below is similar too ([value isKindOfClass:[NSString class]]) > > [[value class] isSubclassOfClass:[NSString class]]
Yes, to be clear: that's why I said "with this method". For some reason I intuitively expect -isKindOfClass: to compare two classes as +isSubclassOfClass: does. When I see the the full method signature (including the -/+) I remember, but if I'm in the middle of writing code, I forget which does which and complain when it fails. :-) -- I.S. _______________________________________________ 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