Re: How to get notification of rerun application
Re: How to get notification of rerun application
- Subject: Re: How to get notification of rerun application
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 19 Nov 2008 16:04:32 -0500
On Wed, Nov 19, 2008 at 5:49 AM, Macarov Anatoli
<email@hidden> wrote:
> No. The program starts up automatically upon system logon, and the icon appears in the system tray (near clock). A user may not notice the icon , thus he/she starts the program manually, and then pops up program's main window.
Why is this a bad thing? This sounds like the appropriate UI to me.
If you're asking how to implement this functionality, use the reopen
functionality I mentioned before. NSApplication has a delegate method
called -applicationShouldHandleReopen:hasVisibleWindows: that you can
implement to do exactly what you're looking for.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden