Re: [Q] Document app but with non-document opening window - how to do it?
Re: [Q] Document app but with non-document opening window - how to do it?
- Subject: Re: [Q] Document app but with non-document opening window - how to do it?
- From: Greg Hulands <email@hidden>
- Date: Mon, 17 May 2004 12:11:09 +1000
I think what you might be after is having an NSApplication delegate and
respond to the following message:
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
- (BOOL)applicationOpenUntitledFile:(NSApplication *)theApplication
This will allow you to display the other window if no other documents
are open.
HTH,
Greg
On 17/05/2004, at 11:53 AM, Peter.Teeson wrote:
>
I'm starting a new project that is to be a Cocoa Multi-window Document
>
app.
>
When the project is created there is a MyDocument class and that's
>
just fine for me to use for documents.
>
>
But when I launch the app I don't want a document to be opened.
>
Instead I wish to display an index page in the form of a tabbed
>
window with the alphabet on the tabs (ABC DEF GHI etc...) and then
>
have the user select an item from one of those tabbed panes (panels?).
>
>
At present my thinking is to make just the two nibs work for me with
>
the MainMenu holding my opening index window and the MyDocument nib
>
hold all the other windows (each with their own window controller).
>
>
So I used InterfaceBuilder to make such a window in the MainMenu.nib
>
and return that in windowNibName. But I get all kinds of errors
>
(missing target connections) when building.
>
>
Obviously I am not understanding something here and so far have not
>
found the correct topic in the on-line documentation at Apple.
>
>
I have the O'Reilly Learning Cocoa , the Hillegass and the Vermont
>
Recipes books but so far haven't found what I need to know.
>
>
Can you please point me at what I should be reading and/or some
>
example code (it's not obvious to me which of the examples is the one
>
to examine).
>
>
TIA for your help and
>
>
respect....
>
>
Peter
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.