Skip navigation.
 
mlRe: Determining type
FROM : stephen joseph butler
DATE : Fri Jun 23 20:14:48 2006

2006/6/23, Jerrod Fowkes <<email_removed>>:
> 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]]

Related mailsAuthorDate
mlDetermining type Jerrod Fowkes Jun 23, 20:13
mlRe: Determining type stephen joseph but… Jun 23, 20:14
mlRe: Determining type Scott Anguish Jun 23, 20:15