• 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
Showing more warnings possible in Xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Showing more warnings possible in Xcode?


  • Subject: Showing more warnings possible in Xcode?
  • From: Eric Hermanson <email@hidden>
  • Date: Fri, 29 May 2009 23:13:47 -0400

I am periodically bitten by EXC_BAD_ACCESS memory problems that are sometimes hard to find. One that just occurred was that I was mistakenly returning an un-initialized local variable from a method (i.e.

NSObject myObject;

...
... some if-statements
...

return myObject;  // I should have at least set myObject = nil above.

Is there a way to tune xCode so that it warns you of these types of potential problems (and more)? The Java development environment I've been using for the past several years (Jetbrains IDEA) has unbelievably fantastic code-editing and compile-time warning systems that allow you to show a myriad of situations as warnings (some are user definable). Is there a way to do this in xCode, or at least set some flags to get more verbose warnings (especially those that can prevent "dumb" mistakes)?

Thank You,
- Eric

_______________________________________________

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: Showing more warnings possible in Xcode?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Drag and drop query
  • Next by Date: Re: Showing more warnings possible in Xcode?
  • Previous by thread: Re: Get Users/Shared full path and its localized dir name
  • Next by thread: Re: Showing more warnings possible in Xcode?
  • Index(es):
    • Date
    • Thread