• 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
Re: First launch window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First launch window


  • Subject: Re: First launch window
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 24 Apr 2006 16:49:49 -0400

On Apr 24, 2006, at 3:04 PM, Matteo Manferdini wrote:

Hi, I'm looking for a way to present a configuration windows the first time a user launches my application like the one in mail. I already managed to show the window, my problem is that the main window of the applications is visible behind it. In mail, when you launch it for the first time, only the configuration window appears.
How do I accomplish that?

Since you've figured out how to detect the first launch, you're already halfway there. ;-)


For a document-based app, in your application delegate, implement - applicationShouldOpenUntitledFile: to return NO on first launch, and YES otherwise. Note that if you do want a new document to be created, but *after* your config wizard (or whatever) finishes, you'll need to call NSDocumentController's methods yourself to create it.

For a non-document app, just uncheck the "visible at launch time" option for the main window in Interface Builder. Then it will be invisible by default, and you can make it visible whenever you want by sending it a -makeKeyAndOrderFront:.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >First launch window (From: Matteo Manferdini <email@hidden>)

  • Prev by Date: Re: Using NSUserDefaultsController with radio buttons
  • Next by Date: Re: NSTokenField and drag 'n' drop
  • Previous by thread: First launch window
  • Next by thread: isMovableByWindowBackground is not always movable (was:How do I implement a splash screen)
  • Index(es):
    • Date
    • Thread