Re: help with logic error

2013-12-12 Thread Uli Kusterer
On 12 Dec 2013, at 12:52, 2551 <2551p...@gmail.com> wrote: > Hi folks > > I need some help with a logic error the Static Analyzer is throwing up. I > didn’t write this code (in fact, its a piece of Apple sample code I’m resuing > in my project), and I’m not quite sure how to correct it. It goe

Re: help with logic error

2013-12-12 Thread Appa Rao Mulpuri
Probably you may need to add the Default case in Switch case block or else initialize with Zero rect. - Apparao On 12/12/13 5:22 PM, "2551" <2551p...@gmail.com> wrote: >Hi folks > >I need some help with a logic error the Static Analyzer is throwing up. I >didn¹t write this code (in fact, its a

Re: help with logic error

2013-12-12 Thread 2551
> On 12 Dec 2013, at 18:56, Mike Abdullah wrote: > If orientation happens to have a value *other* than NSVerticalRuler or > NSHorizontalRuler, you’ll reach this point with borderLineRect containing > garbage since it’s never been filled in properly. This is what the analyser > is complaining of

Re: help with logic error

2013-12-12 Thread Mike Abdullah
On 12 Dec 2013, at 11:52, 2551 <2551p...@gmail.com> wrote: > Hi folks > > I need some help with a logic error the Static Analyzer is throwing up. I > didn’t write this code (in fact, its a piece of Apple sample code I’m resuing > in my project), and I’m not quite sure how to correct it. It goe

help with logic error

2013-12-12 Thread 2551
Hi folks I need some help with a logic error the Static Analyzer is throwing up. I didn’t write this code (in fact, its a piece of Apple sample code I’m resuing in my project), and I’m not quite sure how to correct it. It goes like this, where the numbers [1], [2], [3], [4] represent the end po