• 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: Creating a "Welcome Window"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a "Welcome Window"


  • Subject: Re: Creating a "Welcome Window"
  • From: Mike Abdullah <email@hidden>
  • Date: Fri, 13 Jan 2006 18:44:24 +0000

Thanks Volker. I guess I could just place the window inside my MainMenu.nib, but I'm not entirely sure that's what I want. I probably ought to try and explain a little further:

My app is designed so that generally it is launched by an Applescript asking it to perform a task, rather than the user actually running the app. Because of this, it will be a bit of a rarity that the user actually launches the app. As I see it, this would mean that the "Welcome window" would then be loaded every time the program is, regardless of whether it was actually required to appear.

However, I may be totally wrong with my reasoning above, so if you have any further thoughts please let me know.

Mike.

On 13 Jan 2006, at 18:21, Volker Runkel wrote:

Hi Mike,


just use the MainMenu.nib, which you bind to a subclass of NSDocumentController, to do that.



Volker

- - - - - - - - - - - - - ------ ---- ---- --- -- - - - - - - - - - - - - - - -
Dipl.-Biol. Volker Runkel
Lehrstuhl f. Zoologie II www.biologie.uni- erlangen.de/zoo2
Staudtstr. 5 Telefon: 09131-85 28788
91058 Erlangen email@hidden- erlangen.de
- - - - - - - - - - - - - ------ ---- ---- --- -- - - - - - - - - - - - - - - -


Am 13.01.2006 um 19:16 schrieb Mike Abdullah:

I have written a relatively simple Cocoa Doc-based app. However, it is slightly unusual in that it does not open its a blank document when the app is run. Instead you must choose File-New to do this.

But now, I would like to add what I would describe as a Welcome Window. It would operate in a fairly similar manner to some of the iLife apps, e.g. Garageband when you start the app up for the first time. A simple window should appear that gives you the option to create a new document, quit the app or open the preferences.

At present moment I have used NSApp's applicationShouldOpenUntitledFile: delegate method as a starting point. This gets called whenever the user runs the app, or clicks on the apps icon when there are no documents open. However, I would like to know what people what suggest further to this. Should I stick with lauching the window from this delegate method, or use something else? And to create and control the window, would I be best off using a custom NSWindowController or what?

Thanks,
Mike A.
_______________________________________________
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


_______________________________________________ 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: 
 >Creating a "Welcome Window" (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Ligatures - or more so not ligatures
  • Next by Date: Another newbie question on the document architecture
  • Previous by thread: Creating a "Welcome Window"
  • Next by thread: Another newbie question on the document architecture
  • Index(es):
    • Date
    • Thread