Re: Strange Static Analyzer Warning

2013-12-11 Thread Keary Suska
On Dec 11, 2013, at 9:48 AM, Ken Thomases wrote: > On Dec 11, 2013, at 10:25 AM, Keary Suska wrote: > >> In this method: >> >> - (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView { >> if (self.state == NSOnState) { >>// If selected we need to draw the border new backgroun

Re: Strange Static Analyzer Warning

2013-12-11 Thread Steve Mills
On Dec 11, 2013, at 10:25:42, Keary Suska wrote: > I am getting a warning that I wasn't getting before, in Xcode 4.3.3 LLVM 3.1: > "Potential leak of an object allocated on line 139", with two sub-warnings: > 1) "Method returns an Objective-C object with a +1 retain count" (highlights > kDMTab

Re: Strange Static Analyzer Warning

2013-12-11 Thread Ken Thomases
On Dec 11, 2013, at 10:25 AM, Keary Suska wrote: > In this method: > > - (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView { > if (self.state == NSOnState) { > // If selected we need to draw the border new background for selection > (otherwise we will use default back col

Strange Static Analyzer Warning

2013-12-11 Thread Keary Suska
(I have been trying to send this to xcode-users, but for some reason it won't go through, although it is not entirely off-topic for this list) In this method: - (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView { if (self.state == NSOnState) { // If selected we need to