objective c - Window-less Cocoa application -


i'm complete beginner in objective-c , cocoa.

i create window-less application, shows nsstatusitem in system tray. tray works fine, however, there 1 problem.

for reason application automatically creates window me, not want.

i thought caused automatic interface builder template created when created application in xcode, deleted .nib file project. window still gets created.

the lines contain reference window in header:

nswindow *window; @property (assign) iboutlet nswindow *window; 

and in implementation file:

@synthesize window; 

both added automatically, did not write this.

how stop app creating window? tried removing references window code, including nswindow *window, window still got created.

my temporary fix right call [window close]; in application, surely there better way?

my suspicion nothing in code creating window. when create new cocoa xcode application, xcode sets xib interface you. open mainmenu.xib (should under resources) in interface builder , delete window throws in default.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -