Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Time ticker



On Mar 6, 2005, at 7:29 PM, Jake Pietrykowski wrote:

I've attempted using idle handlers to count seconds with an ASStudio
application. Counting seconds decreases application performance severely,
and while my application was a GUI front end for a FileMaker, in the
process, I managed to bring my FileMaker clients on the network to a
screeching halt...and I was just developing the application.


I'd stay away from using the idle handler. What I did is, for example, i was
counting the elapsed time, i just but a button to click to re-calculate the
time as desired. Then it's on-demand, and not eating up the CPU's...and i my
case...choking the network.


Hello,

Thanks for the suggestion. I have found it is drawing to the screen from any handler, not calling the idle handler per se, that decreases performance. If your idle handler merely counts the seconds (or whatever) in an internal variable, but does not draw on the screen, it can be very fast. Drawing to the screen is very slow in AppleScript Studio, so I stay away from gratuitous drawing on the screen, and optimize where I can, such as an Update button as you described. I avoid animated progress indicators for the same reason.

-Stuart

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


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.