Re: Impossible leak warning in OS X init method

2015-09-03 Thread Bill Cheeseman
On Aug 29, 2015, at 2:54 PM, Jens Alfke wrote: Is it possible that, in removing details from your code, you left out some detail that’s what’s causing the warning? Do you mind posting the actual method, copied/pasted verbatim from Xcode? You asked for it! -- sorry about the formatting. - (id)

Re: Impossible leak warning in OS X init method

2015-08-29 Thread Jens Alfke
That code looks fine to me, and it’s exactly the same style of init method that I use (except that I now use ARC so I don’t have to write the [self release] call.) Is it possible that, in removing details from your code, you left out some detail that’s what’s causing the warning? Do you mind po

RE: Impossible leak warning in OS X init method

2015-08-29 Thread Lee Ann Rucker
ker=vmware@lists.apple.com [cocoa-dev-bounces+lrucker=vmware@lists.apple.com] on behalf of Bill Cheeseman [wjcheese...@gmail.com] Sent: Saturday, August 29, 2015 8:11 AM To: Cocoa-Dev Cocoa-Dev Mail Subject: Impossible leak warning in OS X init method The following initialization code has genera

Impossible leak warning in OS X init method

2015-08-29 Thread Bill Cheeseman
The following initialization code has generated a leak warning in Xcode 4, 5, 6 and 7 beta in a framework of mine for several years. It has never caused an issue in the wild. I would really like to get rid of the warning. Can anybody tell me what I'm doing wrong? @implementation MyObject // sub