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 > Cocoa java doc based app help needed

Cocoa java doc based app help needed
Thread Tools
Junior Member
Join Date: Sep 2000
Location: Paris, France
Status: Offline
Reply With Quote
Nov 14, 2001, 04:30 AM
 
I'm trying to make a little app using the Cocoa Java Document Based model in PB. My question is : Where can I place code to initialize things before any document comes to screen ? I'd like my app to launch without doc window first and I want to grab some prefs before the user calls any menu.

Thanks

Barty
Veni, Vidi, Barty !
     
Forum Regular
Join Date: Jan 2001
Location: Boston, MA
Status: Offline
Reply With Quote
Nov 14, 2001, 08:02 AM
 
Originally posted by TheBarty:
<STRONG>I'm trying to make a little app using the Cocoa Java Document Based model in PB. My question is : Where can I place code to initialize things before any document comes to screen ? I'd like my app to launch without doc window first and I want to grab some prefs before the user calls any menu.</STRONG>
Check out some of the abstract functions in NSApplication -- you'll probably be interested in something like public void applicationDidLaunch(). This is called after the app launches. Just make sure that you've created your application controller and set it as the File Owner's delegate in IB.
     
   
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 09:54 AM.
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