FROM : Michael Nickerson
DATE : Tue Aug 01 03:36:59 2006
On Jul 31, 2006, at 7:02 PM, James Bucanek wrote:
>
> But now I'd like to implement a "getting started" window that
> prompts the user to create a new file or open an existing one. I
> want this window to appear ONLY when the application is started
> without opening an existing document. Searching the archives, the
> advice has been to create this window in
> applicationWillFinishLaunching:. But I don't want to see the window
> every time. I only want it to appear if the application was
> launched without a document to open.
>
>
> Is there a better way?
>
> --
> James Bucanek
Why not just put a call to display your "getting started" window from
-applicationShouldOpenUntitledFile:?
You could still return NO in that case, and then won't need to
rewrite what you already have.
I'm not sure if -awakeFromNib has already been called by the time -
applicationShouldOpenUntitledFile: is (you'd have to test that one),
but if it's not you could just delay the call to display your window
in that case.
Darkshadow
(aka Michael Nickerson)
DATE : Tue Aug 01 03:36:59 2006
On Jul 31, 2006, at 7:02 PM, James Bucanek wrote:
>
> But now I'd like to implement a "getting started" window that
> prompts the user to create a new file or open an existing one. I
> want this window to appear ONLY when the application is started
> without opening an existing document. Searching the archives, the
> advice has been to create this window in
> applicationWillFinishLaunching:. But I don't want to see the window
> every time. I only want it to appear if the application was
> launched without a document to open.
>
>
> Is there a better way?
>
> --
> James Bucanek
Why not just put a call to display your "getting started" window from
-applicationShouldOpenUntitledFile:?
You could still return NO in that case, and then won't need to
rewrite what you already have.
I'm not sure if -awakeFromNib has already been called by the time -
applicationShouldOpenUntitledFile: is (you'd have to test that one),
but if it's not you could just delay the call to display your window
in that case.
Darkshadow
(aka Michael Nickerson)
| Related mails | Author | Date |
|---|---|---|
| James Bucanek | Aug 1, 01:02 | |
| Michael Nickerson | Aug 1, 03:36 | |
| James Bucanek | Aug 1, 03:46 | |
| PGM | Aug 1, 04:34 | |
| PGM | Aug 2, 16:49 | |
| James Bucanek | Aug 2, 20:23 |






Cocoa mail archive

