Is it possible to initialize a NSRunLoop without loading any NIB files (i.e., without calling NSApplicationMain())?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes; you can write your own main method and run
NSRunLoopwithout returning fromNSApplicationMain.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.