• 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: Should the analyzer catch retained objects returned from createXXX methods?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should the analyzer catch retained objects returned from createXXX methods?


  • Subject: Re: Should the analyzer catch retained objects returned from createXXX methods?
  • From: Christiaan Hofman <email@hidden>
  • Date: Wed, 17 Aug 2011 23:21:11 +0200

On Aug 17, 2011, at 23:06, Rick Mann wrote:

> I have a method named createFoo, from which I return an object with a retain count of 1. The Xc4 static analyzer is complaining about a potential leak, but I thought it would notice the "create" in the name...
>
> --
> Rick

The keywords indicating object ownership for Cocoa methods are "new", "copy", and "alloc". "Create" is for (Core) functions.

Christiaan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Should the analyzer catch retained objects returned from createXXX methods? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Should the analyzer catch retained objects returned from createXXX methods?
  • Next by Date: Re: Should the analyzer catch retained objects returned from createXXX methods?
  • Previous by thread: Re: Should the analyzer catch retained objects returned from createXXX methods?
  • Next by thread: Re: Should the analyzer catch retained objects returned from createXXX methods?
  • Index(es):
    • Date
    • Thread