• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rapp events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Prev by Date: Re: NSImage imageNamed
  • Next by Date: Re: NSImage imageNamed
  • Previous by thread: Re: rapp events
  • Next by thread: NSImage imageNamed
  • Index(es):
    • Date
    • Thread