Re: best way to test for NSString / NSCFString type of object?
Re: best way to test for NSString / NSCFString type of object?
- Subject: Re: best way to test for NSString / NSCFString type of object?
- From: Ben Dougall <email@hidden>
- Date: Fri, 3 Oct 2003 01:55:22 +0100
On Friday, October 3, 2003, at 01:49 am, Joseph Jones wrote:
Try this:
[[array lastObject] isKindOfClass:[NSString class]]
I believe this is the preferred method for checking instance type.
joe
thanks :)
_______________________________________________
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.