Check the class of a variable?
Check the class of a variable?
- Subject: Check the class of a variable?
- From: d2kagw <email@hidden>
- Date: Thu, 6 Apr 2006 23:24:17 +1000
Hey there all..
Just wondering if theres a easy way of checking the class of a
variable...
I've gotten this far:
if ( [[theChildren objectForKey:@"data"] class] == @"NSCFArray" )
{
// do something
}
but it never matches [ and yes, im sure the values im testing are a
mixture or NSArrays and NSStrings ]
Thanks a million !
- Aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden