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: Calling UNIX command hungs widget




On Aug 25, 2006, at 9:56 AM, Michael Kwasnicki wrote:
var output = widget.system( "/path/to/command", null ).outputString;


On Aug 25, 2006, at 7:57 AM, Niels Meersschaert wrote:

Have you tried running the command outside of the Dashboard environment?  Is the performance poor there too?  Perhaps the command itself is the problem.  Alternatively, you could call the command asynchronously from the widget, so that the command won't block further execution of the widget.  You need to register a handler to be called on completion.

We are strongly recommending that ALL widget.system calls be asynchronous.  Only use synchronous widget.system for development, if you must at all.

Christian.


-- 

Christian Wagner

Writer — Apple TechPubs

email@hidden



 _______________________________________________
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

References: 
 >Calling UNIX command hungs widget (From: Michael Kwasnicki <email@hidden>)
 >Re: Calling UNIX command hungs widget (From: Niels Meersschaert <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.