Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Stop window from opening at startup!

Stop window from opening at startup!
Thread Tools
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Sep 18, 2001, 03:55 PM
 
I am writing a document based program in Java. My problem is simple: whenever the program is loaded, the default window opens up. A default window also appears if you click the application in the dock (while it running of course). Does anyone know how I prevent this from happening? In IB I de-selected the check box "visible at launch" but that didn't help. I am trying to make it so that one can only open the window by selecting "File>Open..."

I am a novice program so any help would be greatly appreciated.
     
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status: Offline
Reply With Quote
Sep 22, 2001, 11:55 AM
 
In your application's delegate, implement the applicationShouldOpenUntitledFile: method and return NO.
     
Mac Enthusiast
Join Date: Sep 2000
Location: Vermont, USA
Status: Offline
Reply With Quote
Sep 22, 2001, 09:33 PM
 
Thank you! Works great now.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2