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
>
>
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 mails | Author | Date |
|---|---|---|
| Tom Jones | Mar 2, 21:31 | |
| Seth Willits | Mar 2, 22:39 | |
| Andrew Merenbach | Mar 2, 22:44 | |
| j o a r | Mar 2, 23:01 | |
| Johannes Huning | Mar 2, 23:02 | |
| Andrew Merenbach | Mar 2, 23:16 | |
| Chris Hanson | Mar 3, 05:45 | |
| Jens Alfke | Mar 3, 07:50 |






Cocoa mail archive

