On Sep 9, 2009, at 11:39 PM, Dave Keck wrote:
If you enable the -Wformat warning, the compiler will warn you if you omit the trailing nil. Never understood why it's not enabled by default...
The first thing I do in a new Xcode project is, in the project build settings, add "-Wall" to "other warning flags". This turns on pretty much all warnings. (I don't know why there isn't a checkbox for this.) I also turn on "Treat warnings as errors" to make sure none of them slip by — this is pretty essential for Obj-C development, as some very common coding mistakes (like misspelling a message name) are reported as warnings instead of errors.
—Jens_______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com