• 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: Dynamic message typing problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic message typing problem


  • Subject: Re: Dynamic message typing problem
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 16 May 2008 17:11:48 -0700


On 16 May '08, at 2:34 PM, Bill Bumgarner wrote:

An almost universal rule of Mac OS X programming: If you see a compiler warning, you are doing something wrong.

Amen. One of the first things I do to any Xcode project I work on is turn on "Treat warnings as errors" in the build settings. For some reason almost all of Obj-C's type-checking errors appear as warnings, and you ignore those at your peril.


(I also recommend adding "-Wall" to the "Other warning flags" field. That enables [almost] all warnings. Yes, you'll sometimes have to tweak correct code that triggers a warning; but that's much less time consuming than tracking down a bizarre runtime problem that could have been detected by the compiler if you'd let it.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Dynamic message typing problem
      • From: "I. Savant" <email@hidden>
References: 
 >Re: Dynamic message typing problem (From: Julius Guzy <email@hidden>)
 >Re: Dynamic message typing problem (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Dynamic message typing problem
  • Next by Date: Re: Dynamic message typing problem
  • Previous by thread: Re: Dynamic message typing problem
  • Next by thread: Re: Dynamic message typing problem
  • Index(es):
    • Date
    • Thread