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: Call method for NSTimer



On 1/31/06 2:44 PM, "Terry Heaford" <email@hidden> wrote:

> I believe this will do the trick
> 
> on pause (tDelay)
> set myDate to call method "date" of class "NSDate"
> set tOldSecs to call method "timeIntervalSinceNow" of myDate
> set tNewSecs to call method "timeIntervalSinceNow" of myDate
> repeat until (tOldSecs - tNewSecs) > tDelay
> set tNewSecs to call method "timeIntervalSinceNow" of myDate
> end repeat
> end pause
> 
> 

Thanks! I haven't tried it yet, but I will, because after reporting success
with letting Finder do the delaying,  error -1762 once again appeared in my
app. I'm  perplexed, because something else that I've done in the script or
in the IB seemingly unrelated to idling apparently has the power to affect
this error.

Laine Lee


 _______________________________________________
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: Call method for NSTimer (From: Terry Heaford <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.