Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic message typing problem




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Dynamic message typing problem (From: Julius Guzy <email@hidden>)
 >Re: Dynamic message typing problem (From: Bill Bumgarner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.