Re: Determining type
Re: Determining type
- Subject: Re: Determining type
- From: "stephen joseph butler" <email@hidden>
- Date: Fri, 23 Jun 2006 13:14:48 -0500
2006/6/23, Jerrod Fowkes <email@hidden>:
Hi,
This is probably another api question. I am wondering if there is something that can determine the datatype of an object (aka address).
For example, I have
id object; //actual object that has been alloc'ed
I need to know if object is an NSArray or a NSDictionary.
something like:
if (getType(NSArray) == getType(object))
would be really nice. -Jerrod Fowkes
[object isKindOfClass:[NSArray class]]
_______________________________________________
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