Hello,
I'm fairly new to Cocoa, so please excuse me if I'm not using the
right terminology.
I have an NSArray which contains String values and I want to loop
though it and determine if any of those string contain words I'm
looking for. I have tried but have been unsuccessful.
Example...
unsigned arrayCount = [array count];
for(unsigned j = 0; j < arrayCount; j++)
{
id obj;
obj = [array objectAtIndex:j];
/* Here is where I'm having trouble
I know this is not real :-)
if ( [obj inStr:@"home"])
{
NSLog(@"I found home, %@", obj);
}
*/
}
I hope the example helps, thanks,
tom
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]