Re: NSArray EXEC_BAD_ACCESS when initalized with strings
Re: NSArray EXEC_BAD_ACCESS when initalized with strings
- Subject: Re: NSArray EXEC_BAD_ACCESS when initalized with strings
- From: Jens Alfke <email@hidden>
- Date: Thu, 10 Sep 2009 11:31:59 -0700
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 (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