Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApplication callback of some sort?



On Wednesday, July 18, 2001, at 07:22 , Graham Wihlidal wrote:

> I am really need to this language and framework, but I think I am
> progressing quite well. My application is near done, but I need to
> launch something as soon as the application starts up. I tried
> calling a function right before "return NSApplicationMain(argc, argv);"
> which in the end opens a window. This method works up until the point
> that it has to open a window created in IB. It should open it, but
> never does. I am guessing that NSApplicationMain inits all that
> stuff. How can I make a callback or something that I can call this
> function on startup and be able to access Cocoa, Foundation, the
> works... ?
>
Take a look at the delegate methods in NSApplication here are two you
might want to look at: -applicationDidFinishLaunching: and
-applicationWillFinishLaunching:.

Dave
--
Chaos Assembly Werks
"Imagination is more important than knowledge."
- Albert Einstein




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.