title: Error: unlockFocus called too many time
body: <p>I am a relative newbie to cocoa and am building a Mac OS X application. My application (SDK 10.8 + Deployment 10.6) is working perfectly on OSX 10.8 (in fact multiple machines) but on an older 10.6, it crashes. After checking the logs via Instruments, I'm getting the following error:</p>
  
  <p>"unlockFocus called too many time"</p>
  
  <p>After a couple of runs, I've figured that its because of some cocoa drawings I make. I have no idea why this is the case. Is this because of hardware or OS limitations? I've read the Apple documentation but haven't found anything.</p>
  
  <p>I know every situation is different but is there a general reason for this? What does "too many time" really mean? A limit in a certain time?</p>