then why does Xcode complain about an unused result? this is just another 
example of a TOTALLY USELESS error message. 

anyway, i fixed it, and now it works. thanks.

On 28. Oct 2012, at 11:56, Roland King <r...@rols.org> wrote:

> 
> On 28 Oct, 2012, at 7:50 PM, H Miersch <hmier...@me.com> wrote:
> 
>> ok, it looks like i've sorted the original problem. but here's the next one:
>> 
>> i have this line:
>> 
>> for (i = 0; i++; i < count) {…}
>> 
>> in the app delegate. Xcode keeps giving me this warning: expression result 
>> unused. WTF? that is correct syntax for a for loop, isn't it? so then why do 
>> i keep getting this warning?
>> also, i have confirmed that the statements between { and } are NOT executed, 
>> no matter what. that's not right either. so WTF is going on here?
>> _______________________________________________
> 
> 
> no it's not even vaguely the right syntax for a for loop. You have 
> 
>       for( initialiser, iterator, condition )
> 
> it's supposed to be 
> 
>       for( initialiser, condition, iterator )
> 
> that's just basic C
> 
> so change it to 
> 
>       for( i = 0 ; i < count ; i++)
> 
> Xcode is totally correct here. 


_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to