Re: Solved:NSApp beginSheet: behaving oddly
Re: Solved:NSApp beginSheet: behaving oddly
- Subject: Re: Solved:NSApp beginSheet: behaving oddly
- From: Ed Baskerville <email@hidden>
- Date: Mon, 28 Feb 2005 14:26:34 -0800
A lot of people like this trick, but I find it somewhat unreadable. An
alternative is to just turn on -Wparentheses, in which case:
if(myVar = 1)
will give a warning, but
if((myVar = 1))
will not.
It does have the effect of wanting extra parentheses around
while(obj = [someEnumerator nextObject])
but that seems like a small price to pay.
--Ed
On Feb 28, 2005, at 2:09 PM, Henry Maddocks wrote:
This why all your comparisons should look like this...
if (1 == myVar )
because this...
if (1 = myVar )
wont compile.
On 01/03/2005, at 1:28 AM, <email@hidden> wrote:
From: Douglas Norton <email@hidden>
Did you mean to assign NSOKButton to result ??
omg i suck at teh intarweb! I get bit by that at least once every
project I do, I swear. Thanks for pointing that out for me, I
probably wouldn't have ever seen it.
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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