• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa - Not loading any window at startup ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa - Not loading any window at startup ...


  • Subject: Cocoa - Not loading any window at startup ...
  • From: email@hidden
  • Date: 06 Mar 2008 11:55:39 +0000
  • Authenticated-sender:

Hi,

I'm relatively new to Cocoa but have an application that's coming along nicely. Mostly when I have come across an issue I have managed to find a solution using Google but this particular one has me stumped.

My application has three window, a notification window (similar to Growl) that pops up when particular events happen, a window that pops-up when the user clicks the dock icon and a preferences window that pops up when the user selects preferences from a StatusBarItem I have added to the status bar (or at least thats how it should work). All windows are in MainMenu.nib

The problem I'm having is that I don't want any windows to open when the application launches, and at the moment the notification window opens (as it's the only windows I've actually implemented so far), and I also don't want a main menu because I've added a custom menu to the status bar. I've looked at NSUIElement and LSUIElement but they remove the dock icon also, and I need the dock icon, plus they still launch the window.

So ultimatley my question is, how do launch/setup my application so that I get a dock icon, but no menu bar and so that no window is opened when launched, only when the user does something that prompts a window.

Thanks in advance.

-Mic

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa - Not loading any window at startup ...
      • From: Nir Soffer <email@hidden>
    • Re: Cocoa - Not loading any window at startup ...
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Deferring a selector until later, but before painting
  • Next by Date: Re: Cocoa - Not loading any window at startup ...
  • Previous by thread: Re: Cocoa - Not loading any window at startup ...
  • Next by thread: Re: Cocoa - Not loading any window at startup ...
  • Index(es):
    • Date
    • Thread