title: cocoa get list of installed applications
body: <p>Is there a way to get all installed applications for the current user in cocoa?</p>
  
  <pre><code>NSArray *runningApps = [[NSWorkspace sharedWorkspace] launchedApplications];
  </code></pre>
  
  <p>The above gives me currently running applications but for my app I need to list all installed applications. I need the application key (e.g. com.apple.appname) so system_profiler will does not work.</p>