Ben Reeves Ben Reeves - 1 year ago 119
Objective-C Question

Run NSRunLoop in a Cocoa command-line program

Is it possible to initialize a

without loading any NIB files (i.e., without calling


Answer Source

Yes; you can write your own main method and run NSRunLoop without returning from NSApplicationMain.

Have a look at this link; this guy is using NSRunLoop in his main method, he is not loading NIB files though, but it should get you going with NSRunloops.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download