title: Xcode: compiled application file does not work as in debug runtime
body: <p>I have an issue where when I run my application in debug mode, the application shows obvious runtime lags. As specified in numerous articles, the application bundle will run up to 10X faster than when running from xcode (including with instruments).</p>
  
  <p>However, when I open the app (going through the project explorer/products/app_name.app) and show in finder then run the app, several features that work perfectly in debug mode (in my case, certain keyboard press functions).</p>
  
  <p>The app runs much faster as expected than the debug mode runtime, but lacks some of the behaviors which work in debug mode. Furthermore, some other actions close the application altogether.</p>
  
  <p>I don't know where to start figuring this out but have some intuition and would like confirmation what it might be:
  1-Instruments: is there a difference of memory usage between debug and application bundle for which debug keeps a cap on memory usage, CPU usage etc?
  2- COnsidering cache misses, is it possible that my nSResponder when I activate a key does not catch some later down the track switch cases, which will create a cache miss? (I doubt this since my controls file runs as an extension to one of my main loops). Note: If this works fine in debug mode, why would it not work in the application itself?</p>
  
  <p>Any pointer to why this behavior greatly appreciated, so that I don't make large changes that won't affect the outcome (It's a large project).</p>