RE: How to find what kind of Objects are contained in NSArray
RE: How to find what kind of Objects are contained in NSArray
- Subject: RE: How to find what kind of Objects are contained in NSArray
- From: "Ramakrishna Kondapalli" <email@hidden>
- Date: Sat, 10 Apr 2004 16:45:12 +0530
- Thread-topic: How to find what kind of Objects are contained in NSArray
NSObject worked well for it. [[myArray objectAtIndex:i] class]
-----Original Message-----
From: Moray Taylor [
mailto:email@hidden]
Sent: Saturday, April 10, 2004 4:30 PM
To: Ramakrishna Kondapalli
Cc: email@hidden
Subject: Re: How to find what kind of Objects are contained in NSArray
Hi,
Since they are all based on NSObject, could you use NSObject's class
and superclass methods?
Moray
>
Hi,
>
>
I have an NSArray. It contains objects of type NSDictionary,
NSString,
>
NSTextField etc in any order. For a given index how do I know whether
>
it is a NSDictionary or NSString or something else type object?
>
>
>
>
Thanks & Regards
>
>
Ramakrishna
>
_______________________________________________
>
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.