I created a command line tool. I have my project almost done, but now I need to create an user interface to ask for user credentials.
Is possible to add a window to my command line project, or I have to create a cocoa application to do that?
I created a command line tool. I have my project almost done, but now
Share
A command-line tool won’t have a connection to the window server (that’s done by NSApplication), so no, it can’t create a window. If you need to show a window for any reason, it probably should be an application at that point anyway, so you should go with that and make it one.