Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

Search found 114 matches

Author Message
gandreas

Replies: 2
Views: 5434

Forum: Widget Development
Posted: Mon Nov 05, 2007 - 12:10 pm
Subject: Problem with copying to clipboard under Leopard

There are several major problems with your approach:

1) You should never use synchronous widget.system calls in production code - they are for debugging purposes only. (One major reason they are b ...

gandreas

Replies: 4
Views: 6667

Forum: Widget Development
Posted: Sun Apr 08, 2007 - 9:49 am
Subject: Passing extensive values to AppleScript

And hope that it doesn't have any non-ascii characters since they won't be correctly interpreted when they get to the script, thanks to osascript expected MacRoman instead of UTF8.

osascript works ...

gandreas

Replies: 2
Views: 5041

Forum: Widget Development
Posted: Sun Apr 08, 2007 - 9:44 am
Subject: Widget Plug-in linked framework problem

The problem is that that the @executable_path is the path of the executable, which is the dashboard client app, not the plugin.

You'll need to use @loader_path instead.

gandreas

Replies: 2
Views: 3372

Forum: Widget Development
Posted: Mon Aug 14, 2006 - 10:23 am
Subject: Xmlhttprequest, POST and "wrong" answer from the s

You say that the request should look like:


myP1=upw&myP2=un&cmd=command


but by looking at your code, it appears to be:


p1=upw&p2=upw&cmd=command


Is the comment wron ...

gandreas

Replies: 2
Views: 3837

Forum: Widget Development
Posted: Fri Aug 04, 2006 - 10:43 am
Subject: xmlHttpRequest & PHP - Two GET variables in URL problem

Don't use curl & shell commands to fetch a url - use XMLHttpRequest.

The problem you're seeing is that '&' is a shell special character and so this command no longer does what you think it ...

gandreas

Replies: 23
Views: 22568

Forum: Widget Development
Posted: Thu Jul 27, 2006 - 9:21 am
Subject: targeting user folder with Widget

Well, I haven't messed around with getting the escape character to be recognized in openURL, but this is an easy way to hide the dashboard (used either in or not in the function:

function hideDashb ...

gandreas

Replies: 2
Views: 4066

Forum: Widget Development
Posted: Thu Jul 20, 2006 - 10:23 am
Subject: Canvas Resizing Issues

The best way I've found is to not allow any "automatic" CSS based resizing (i.e., don't declare something with left and right values, but instead use left and width) and do the resizing explicitly and ...

gandreas

Replies: 20
Views: 36895

Forum: Widget Development
Posted: Wed Jul 19, 2006 - 10:35 pm
Subject: More problems with widget.system

I've been having some problems with the above method.

I've downloaded widgetarium and am checking it out. I makes developing widgets 20 steps easier. Give or take a step.

Do you have an exampl ...

gandreas

Replies: 20
Views: 36895

Forum: Widget Development
Posted: Sun Jul 16, 2006 - 2:30 pm
Subject: More problems with widget.system


I found the file. It's inside the widget bundle as you suspected. If the file already exists in the widget bundle, when it is deployed, I would assume there won't be write permissions issue becaus ...

gandreas

Replies: 20
Views: 36895

Forum: Widget Development
Posted: Sun Jul 16, 2006 - 11:57 am
Subject: More problems with widget.system

Kind of replying to myself, but I thought it'd be useful for some people. You can combine an asynchronous widget.system call with the XMLHttpRequest workaround:


var commandstring = "curl ht ...

gandreas

Replies: 2
Views: 4594

Forum: Widget Development
Posted: Tue Jul 11, 2006 - 3:05 pm
Subject: Refreshing an Image Question

The most common way to handle this is to include a random (and ignored) parameter. For example:


img.src = "http://website/images/latestimage.png?" + Math.random();


Tha ...

gandreas

Replies: 6
Views: 10200

Forum: Widget Development
Posted: Mon Jul 10, 2006 - 8:28 pm
Subject: unable to diagnose system.widget error

Here is my console output:

2006-07-10 15:26:34.832 DashboardClient



This is exactly how it is suppose to work - the call to Widget.system returns immediately (and since it hasn't completed, " ...

gandreas

Replies: 6
Views: 10200

Forum: Widget Development
Posted: Mon Jul 10, 2006 - 8:22 pm
Subject: unable to diagnose system.widget error

The second hint is only partially applicable here since besides "/bin/echo", bash has a built-in "echo" as well, and since bash usually is the default shell for every user and that's where widget.syst ...

gandreas

Replies: 6
Views: 10200

Forum: Widget Development
Posted: Mon Jul 10, 2006 - 9:49 am
Subject: unable to diagnose system.widget error

First, you shouldn't be using synchronous widget.system calls (they are only designed for testing purposes and not general purpose production code).

Second, you should always explicitly specify the ...

gandreas

Replies: 3
Views: 6066

Forum: Widget Development
Posted: Wed Jun 28, 2006 - 11:45 am
Subject: Problem with widget.system() and 10.4.7


Thanks so much for pointing this out. It doesn't say that anywhere in the ADC documentation, so I was confused. (BTW, how does one get on that mailing list?)


Here's the direct link:
I actual ...

 
Page 1 of 8 Goto page 1, 2, 3, 4, 5, 6, 7, 8  Next
Powered by phpBB © 2001, 2002 phpBB Group