Re: rapp events
Re: rapp events
- Subject: Re: rapp events
- From: Brian Webster <email@hidden>
- Date: Sun, 08 Jul 2001 11:54:08 -0500
on 7/8/01 8:34 AM, email@hidden at
email@hidden wrote:
>
Tried adding this, it worked. Exactly once. I cannot get the event to
>
occur again.
How are you trying to trigger the event? It will only occur on dock clicks
or opening the app again from the Finder. Command-tab doesn't trigger it,
for example.
If you want to completely override NSApplication's implementation of the
handler, you should be able to remove its handler and then set your own.
Probably a good place to do this is in the -applicationDidFinishLaunching:
delegate method. I believe NSApplication's implementation just opens a new
document, as per the Aqua HI Guidelines, so you should be sure to follow the
guidelines in your implementation as well (i.e. open a new document, or if
your app doesn't have documents, open the "main" window of your app).
--
Brian Webster
email@hidden
http://www.owlnet.rice.edu/~bwebster/