Skip navigation.
 
mlRe: NSString and string contains
FROM : Andrew Merenbach
DATE : Sun Mar 02 23:16:39 2008

Yep, I would've suggested fast enumeration, as I use them myself 
regularly, except that a beginner might (or might not) find the 
traditional paradigm easier.

Cheers,
   Andrew

On Mar 2, 2008, at 2:01 PM, j o a r wrote:

>
> On Mar 2, 2008, at 10:44 PM, Andrew Merenbach wrote:
>

>> You probably want to use enumerators and something like the 
>> following code:

>
>
> ...and if you're on 10.5 (or later - even if that's kind of unlikely 
> at this point) you'd use the new FAST enumerator:
>
> for (NSString *string in array)
> {
>     // Do stuff with the string
> }
>
> j o a r
>
>

Related mailsAuthorDate
mlNSString and string contains Tom Jones Mar 2, 21:31
mlRe: NSString and string contains Seth Willits Mar 2, 22:39
mlRe: NSString and string contains Andrew Merenbach Mar 2, 22:44
mlRe: NSString and string contains j o a r Mar 2, 23:01
mlRe: NSString and string contains Johannes Huning Mar 2, 23:02
mlRe: NSString and string contains Andrew Merenbach Mar 2, 23:16
mlRe: NSString and string contains Chris Hanson Mar 3, 05:45
mlRe: NSString and string contains Jens Alfke Mar 3, 07:50