Re: 3 obj-c/cocoa beginner q's
Re: 3 obj-c/cocoa beginner q's
- Subject: Re: 3 obj-c/cocoa beginner q's
- From: Ben Dougall <email@hidden>
- Date: Tue, 25 Mar 2003 16:52:05 +0000
On Tuesday, March 25, 2003, at 04:32 pm, Finlay Dobbie wrote:
On Tuesday, March 25, 2003, at 03:59 pm, Ben Dougall wrote:
for(int i([myArray count] - 1); i >= 0; --i)
{
...
}
oh yeah that's good - doesn't even use the extra variable. thanks.
Yes it does. Look again at the initialisation statement.
i know it uses a variable, but not an *extra* variable, as in:
for ( i=0, max=[myArray count]; i<max; i++ ) {
...
}
_______________________________________________
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.