Re: NSApplication callback of some sort?
Re: NSApplication callback of some sort?
- Subject: Re: NSApplication callback of some sort?
- From: "David P. Henderson" <email@hidden>
- Date: Wed, 18 Jul 2001 19:36:47 -0400
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