Re: NSApplication delegate
Re: NSApplication delegate
- Subject: Re: NSApplication delegate
- From: John Hörnkvist <email@hidden>
- Date: Sat, 5 May 2001 00:04:59 +0200
On Friday, May 4, 2001, at 09:19 PM, Robert Lee Dotson wrote:
've been seeing alot of posts telling people to send messages to the
application delegate to do various things (services, windows, nib
files, etc.) But I have no idea where in my apps code the delegate
should be. When I launch my app, I want a set number of things to
happen, but most of them *before* the main nib file loads (eg. polling
for modems, open network connections, etc.) so the app can terminate or
open another. How do I set the order in which objects are instantiated
and/or nib files are loaded. Everything I read says 'send a message to
the application delegate.
' But, as forementioned, I don't know how to do this. help!
You could subclass NSApplication, and set up your delegate in the init
method.
Regards,
John Hornkvist