Search Array for Variable in Object
Search Array for Variable in Object
- Subject: Search Array for Variable in Object
- From: Steve Gran <email@hidden>
- Date: Sun, 4 Dec 2005 13:48:07 -0800
I know I can search an array of object for a specific object, but is
there a way to search an array of objects looking for a specific
value of one particular variable of the object?
For example,
let's say myObject has 3 variables: int varOne, NSString varTwo,
NSString varThree
and myArray contains myObject1, myObject2, myObject3
How would I search myArray to find an object whose varTwo (an
NSString)= "The Key String"
_______________________________________________
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