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

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 goes like

Re: help with logic error

2013-12-12 Thread 2551
On 12 Dec 2013, at 18:56, Mike Abdullah mabdul...@karelia.com 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

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 piece

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 goes like

Re: help with this error

2011-08-09 Thread Rick C.
The error is appearing in Lion but only on one specific Mac and one specific user. Other users are fine and other Macs are fine. There is something specific to the system in this case and it's the minority I'm sure, but still trying to figure out what it is... On Aug 9, 2011, at 8:19 AM,

Re: help with this error

2011-08-08 Thread Rick C.
Yes the error is coming apparently when it tries to move a file which needs an administrator password. Thing is a panel is presented asking for permission and even if you just cancel it this error doesn't appear. And this is not something new meaning this project has been ran on many machines

Re: help with this error

2011-08-08 Thread Sean McBride
On Tue, 9 Aug 2011 08:14:15 +0800, Rick C. said: Yes the error is coming apparently when it tries to move a file which needs an administrator password. Thing is a panel is presented asking for permission and even if you just cancel it this error doesn't appear. And this is not something new

help with this error

2011-08-07 Thread Rick C.
Hi again, Does anyone know what could cause my app to trigger this error in Console: kernel: mcxalr{4} ** Denying execute for uid=504 appname Any insight would be much appreciated thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: help with this error

2011-08-07 Thread John Joyce
On Aug 8, 2011, at 10:04 AM, Rick C. wrote: Hi again, Does anyone know what could cause my app to trigger this error in Console: kernel: mcxalr{4} ** Denying execute for uid=504 appname Any insight would be much appreciated thanks! ___