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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -