cocoa - NSApplicationDelegate prevent window if command line present -
i have simple single window app, drop target on files. works fine. however, want when started command line, processes files instead, rather showing window.
is there delegate method in nsapplicationdelegate can prevent window showing, process files , quit application in?
you can set window not show when loaded nib file. there's setting in inspector in interface builder.
then can show window if necessary, using methods described in this documentation.
but still show icon in dock while app processing file.
Comments
Post a Comment