title: NSApplicationLoad in a C header?
body: <p>I discovered that I had to call NSApplicationLoad in order to obtain display reconfiguration callbacks. My program is written in straight C, and for various reasons I'd like to avoid adding Objective-C code to my project.</p>
  
  <p>The headers in which <code>NSApplicationLoad</code> is defined (either <code>Cocoa/Cocoa.h</code> or <code>AppKit/AppKit.h</code>) are Objective-C headers, and naturally throw lots of errors when compiled with a normal C compiler.</p>
  
  <p>Calling <code>NSApplicationLoad</code> with a simple <code>extern void NSApplicationLoad(void)</code> prototype works, and indeed my program works fine. But, I'm somewhat worried that this is not a "proper" approach since it feels like I should be including something.</p>
  
  <p>Is there a straight C header (like the CoreFoundation or ApplicationServices headers) which contains NSApplicationLoad? If not, is my current approach (to just apply the prototype) safe?</p>