• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Solved:NSApp beginSheet: behaving oddly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Solved:NSApp beginSheet: behaving oddly (From: <email@hidden>)
 >Re: Solved:NSApp beginSheet: behaving oddly (From: Henry Maddocks <email@hidden>)

  • Prev by Date: Re: Solved:NSApp beginSheet: behaving oddly
  • Next by Date: Re: Handle AppleScript command using a delegate
  • Previous by thread: Re: Solved:NSApp beginSheet: behaving oddly
  • Next by thread: NSXMLParser and encodings
  • Index(es):
    • Date
    • Thread