I am a complete newbie to Objective-C and Cocoa.
I would like to create a windowless application that only shows NSStatusItemin the system tray. The tray works fine, but there is one problem.
For some reason, my application automatically creates a window for me that I don't want.
I thought this was caused by the automatic interface builder pattern created when the application was created in Xcode, so I deleted the .nib file from the project. However, a window is still created.
The header contains only lines containing a link to the window:
NSWindow *window;
@property (assign) IBOutlet NSWindow *window;
and in the implementation file:
@synthesize window;
Both were added automatically, I did not write this.
How to just stop the application from creating a window? I even tried to remove all references to windowfrom the code, including NSWindow *window, but the window is still created.
[window close]; , , , ?