RE: Comparing Objects' Classes
RE: Comparing Objects' Classes
- Subject: RE: Comparing Objects' Classes
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Thu, 15 Jan 2004 10:34:03 -0500
Read the NSObject and NSObject protocol docs, especially isSubclassOfClass,
isKindOfClass and isMemberOfClass.
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Kevin Wojniak
>
Sent: Thursday, January 15, 2004 1:07 PM
>
To: Cocoa-Dev
>
Subject: Comparing Objects' Classes
>
>
>
If I have an object, say ball and I want to see if it's of an
>
NSDictionary or a BOOL or something else, how would I do this? I know I
>
can check for it's existence with nil but I need to identify it's
>
class...
>
>
Maybe if ([ball class]==[NSDictionary class]) ??
>
>
Many thanks,
>
Kevin
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.