Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Look at cocos2dx how they do it. cocos2d-x.org/wiki/… Commented Nov 7, 2014 at 7:14
  • You could make your method similar to a "create" method where it is the caller's job to release the object. The callee "retains" implicitly on "alloc", and the caller "releases" when it's done. Commented Nov 7, 2014 at 18:36
  • 1
    @Cole that is exactly what an auto release pool is there for to avoid. Commented Mar 2, 2020 at 8:46