Re: First launch window
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