On Tue, Feb 10, 2009 at 12:26 PM, Mike Abdullah <cocoa...@mikeabdullah.net> wrote: > Read the documentation on -isKindOfClass: again. It does exactly what you > want. -isMemberOfClass: performs the more specific test of excluding > subclasses.
In addition, a common gotcha (for me, anyway - it still gets me now and again) is that you need to remember you're comparing "instances" to "classes" with this method: ([value isKindOfClass:[NSString class]]) ... not ... ([[value class] isKindOfClass:[NSString class]]) The former is correct, the latter is what I sometimes find myself doing (and of course 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