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?
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.
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.
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.