| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| An important note on this, that I believe affects the original poster's concerns. While you can display a dialog & play a sound, it must be attached to an application, not to the "desktop" as originally asked. The Finder is the closest match to the "desktop", but it is still an independent application. Therefore, there is no guarantee of focus when attaching an alert to it. For instance, if the user was using Mail & you told Finder to display a dialog, Finder won't take focus from Mail. All that will happen is that the Finder's Dock icon will bounce. Once the user switches focus to the Finder, they would see the alert box. From a UI perspective, that doesn't make much sense in this application, since the Finder doesn't have a clear connection to that particular widget in the Dashboard. Ideally, you'd have the Dashboard icon bounce, but since that can be removed from the dock, it's not a viable alternative. As Micah, suggested, a widget shouldn't consume any CPU when it isn't shown, so perhaps a widget isn't the proper environment for the application the original poster is trying to create. Dashboard is intended for on-demand applications, not daemons. However, you can use Dashboard as a view of the daemon. There are several widgets that are good examples of this, such as those that read system load. In that case, the widget isn't doing the processing, but is merely displaying the output from the application doing the processing. I'd suggest that if the application can't gather the data the user needs before they hide the dashboard, it wasn't that important to them anyway. In that case, the complexity of the processing probably would be better served by a compiled application, like Java, or even better Obj-C, rather than _javascript_. Good luck, Niels On May 31, 2005, at 3:09 PM, Guy Brooker wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Dashboard-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/dashboard-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.