Doc-based-app without start-window ?

Hallo,

I want to build a doc-based-app without a start-window. The app should start with the main menu only and then by choosing the menu items “New” or “Open…”.
But I don’t know how to prevent the start- window (if it’s possible).
Can anyone help me?

Hi,

Try opening your main nib in Interface Builder. Then close the window by pressing the red button ath the top left.

Best wishes

John M

Hi John M,

I don’t understand your remark. Maybe I haven’t expressed me clearly or you will make fun of me. Nevertheless I’ll try again to tell my problem:
I want to build a doc-based-app that opens only with a menubar (without a document- window at the beginning and without loosing the event handlers ‘data representation’ and ‘load data representation’. After then I will choose either to open a new window or open a saved window.
I don’t know if it is possible at all.

Thanks
Heiner

Heiner, I think I know what you’re looking for. Open the window in Interface Builder, then, in the Inspector, find and uncheck the “Visible at launch time” checkbox.

Hallo Bruce,
thank you for your interference.
You wrote : “uncheck the “Visible at launch time” checkbox.”
But that is the problem. It is unchecked natively and the window is nevertheless visible.
What’s to do? Any idea?

Greetings Heiner

Browser: Safari 419.3
Operating System: Mac OS X (10.4)

I would guess that your app is making a new document went it launches. I’m not very familiar with doc-based apps, so I don’t know what else to tell you.

I’m not familiar with the problem either, but can an app be made to launch ‘hidden’, close the window, and then become visible?

Open your main application nib (MainMenu.nib) in IB. Connect the File’s Owner “should open untitled” event handler to your main script. Go back to your script, and add the following code into the handler…

on should open untitled theObject
	return false
end should open untitled

This will override the default setting of returning true.

j

That is the solution!

Thank you very much, jobu!
Also many thanks to the administrators!

Danke
Heiner

Model: eMac
Browser: Safari 419.3
Operating System: Mac OS X (10.4)