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



Hi,

> On 3/6/05 1:41 PM, "Stuart B. Russell" wrote:

> Ronald,
> 
> You need to update your time field inside an idle handler. AppleScript
> will call your idle handler periodically, using the idle interval you
> supply, and in the meantime, the application uses very little time. In
> AppleScript Studio, you also need to add the idle handler to your
> MainMenu.nib file. Here are instructions for adding an idle handler to
> an existing AppleScript Studio application:

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.

Best Regards,
Jake


 _______________________________________________
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

References: 
 >Re: Time ticker (From: "Stuart B. Russell" <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.