<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MetaBlog &#187; Mac</title>
	<atom:link href="http://www.metablocks.com/blog/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.metablocks.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 16 Dec 2009 18:42:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MacOS Flash Widget Development</title>
		<link>http://www.metablocks.com/blog/2009/02/01/mac-widget-development/</link>
		<comments>http://www.metablocks.com/blog/2009/02/01/mac-widget-development/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 23:50:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clearspring]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Gigya]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://www.metablocks.com/blog/2009/01/29/mac-widget-development/</guid>
		<description><![CDATA[
It has been possible for sometime (because of the MacOS widget’s webkit support for plugins) to port flash widgets or application to the Macintosh desktop. There are a couple of caveats to be aware of, however, when doing this:

Ensure your Info.plist file is Setup Correctly
Ensure the following two lines are in the Info.plist file for [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p><img src="http://www.metablocks.com/blog/wp-content/uploads/2009/01/mac.jpg" alt="Mac" border="0" title="MacOS Flash Widget Development widget facebook clearspring" /><br />
It has been possible for sometime (because of the MacOS widget’s webkit support for plugins) to port flash widgets or application to the Macintosh desktop. There are a couple of caveats to be aware of, however, when doing this:</p>
<ol>
<li><strong>Ensure your Info.plist file is Setup Correctly</strong><br />
Ensure the following two lines are in the <strong>Info.plist</strong> file for your Mac Widget:<br />
<code> &lt;key&gt;AllowNetworkAccess&lt;/key&gt;<br />
&lt;true/&gt;<br />
&lt;key&gt;AllowInternetPlugins&lt;/key&gt;<br />
&lt;true/&gt;</code><br />
This will allow the widget to support Adobe Flash objects and allow network access.</li>
<li><strong>Ensure your Flash Object is Running Locally not Remotely</strong><br />
Accessing Adobe Flash files remotely from your MacOS widget may cause problems due to  security sandboxing so if at all possible, avoid it.</li>
<li><strong>Beware of Floating DIVs</strong><br />
Whenever you try and place a floating DIV over a Flash object, you are sure to run into trouble. Design your widget so any HTML/Javascript generated floating DIV do not obscure the Flash object.</li>
<li><strong>Flash Transparency Does Not Work</strong><br />
In order to get the widget to “float” nicely on your desktop with a drop shadow (as most MacOS widgets have) you need to place it on top of a DIV that has a transparent/semi-transparent PNG. Obviously, the DIV needs to be larger than the size of your Flash object</li>
<li><strong>Use Clearspring or Gigya for Sharing and Tracking</strong><br />
You can use Clearspring’s In-widget model or Gigya to enable sharing and tracking from within your Flash object, that way users can share the widget with friends on the web or other platforms. <a href="http://www.macworldwidget.com/" target="_blank">Here is an example</a> we helped develop (Click Grab Me, then Web).</li>
<li><strong>Please Refresh and Redraw  as Often as Necessary</strong><br />
When doing Flash-based widget development we have noticed that a bug in the Webkit sometimes causes refresh/redraw problems with the Flash portion of the widget. There is little you can do do solve this other than to intelligently force the widget to redraw each time a user moves the widget, maximizes the widget and brings focus to the widget (by clicking on it).  In order to do this type of refreshing, you will need to use <strong><a href="http://blog.deconcept.com/swfobject/" target="_blank">swfobject.js</a></strong>. SWFObject is a small Javascript file used for embedding Adobe Flash content on webpages (and in widgets). It is capable of detecting and handling Flash plug-in versions correctly in all major web browsers(on Mac and PC) and can really make embedding Flash movies a lot easier!</li>
<li><strong>Passing in User Preferences</strong><br />
Using <strong>swfobject.js</strong> and flashvars you can pass user preference from the MacOS widget environment into your Flash object.  Redraw the Flash object, reading and then passing in preferences via the flashvar, each time you load or change them.</li>
</ol>
<p>Hope this pointers help, if you run into problems, let us know!</p>
<!-- sphereit end --><span style="font-size:12px;margin-bottom:40px; border-bottom:none;"><a class="iconsphere" style=\"font-size:12px;\" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://www.metablocks.com/blog/2009/02/01/mac-widget-development/')" href="http://www.sphere.com/search?q=sphereit:http://www.metablocks.com/blog/2009/02/01/mac-widget-development/">Sphere: Related Content</a></span><div style='padding:3px'></div>]]></content:encoded>
			<wfw:commentRss>http://www.metablocks.com/blog/2009/02/01/mac-widget-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe AIR as a Widget Platform</title>
		<link>http://www.metablocks.com/blog/2009/01/27/adobe-air-widget-platform/</link>
		<comments>http://www.metablocks.com/blog/2009/01/27/adobe-air-widget-platform/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 03:22:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://www.metablocks.com/blog/2009/01/27/adobe-air-widget-platform/</guid>
		<description><![CDATA[The Adobe  AIR  runtime was designed to allow developers to use Adobe Flash and FLEX to build &#8220;rich media&#8221; applications that run outside the browser on multiple operating systems. Today, a vast majority of web widgets are written in Adobe Flash.  This allows them to run on a broad range of social networking, community and [...]]]></description>
			<content:encoded><![CDATA[<!-- sphereit start --><p>The <a href="http://www.adobe.com/products/air/" target="_blank">Adobe  AIR  runtime</a> was designed to allow developers to use <strong>Adobe Flash and FLEX</strong> to build &#8220;rich media&#8221; applications that run outside the browser on multiple operating systems. Today, a vast majority of web widgets are written in Adobe Flash.  This allows them to run on a broad range of social networking, community and blog sites. Creating Adobe AIR versions of these widgets enables them to function as desktop widgets with very little extra work.  In the past, developers had to package Flash widgets on one of the desktop widget platforms (MacOS, Vista, Yahoo! widgets, i.e.) or use ZINC to create destkop version of their widgets. Some of these options were limited to certain platforms, while other options were cumbersome or expensive.<br />
<img src="http://farm3.static.flickr.com/2074/2034394938_9e36bcefe2_m.jpg" width="240" height="127" title="Adobe AIR as a Widget Platform widget facebook flash" alt="Adobe AIR as a Widget Platform flash widget facebook" /><br />
<strong>Adobe AIR </strong>is looking like a very attractive widget development platform. Like the recently updated Yahoo! widget engine, AIR supports WebKit, SQLite, XML, AJAX and Javascript.  Like the Yahoo! widget engine, users have to download and install the <a href="http://get.adobe.com/air/" target="_blank">Adobe AIR runtime</a> (approximately 15MB vs Yahoo&#8217;s 23MB).  Additionally, Adobe AIR runs on Microsoft Windows 2000; Windows XP; Windows Vista Home Premium, Business, Ultimate, or Enterprise; Mac OS X (10.4, 10.5); and Linux &#8211; <strong>pretty much everything!</strong> More to come on Adobe AIR widget development!</p>
<!-- sphereit end --><span style="font-size:12px;margin-bottom:40px; border-bottom:none;"><a class="iconsphere" style=\"font-size:12px;\" title="Sphere: Related Content" onclick="return Sphere.Widget.search('http://www.metablocks.com/blog/2009/01/27/adobe-air-widget-platform/')" href="http://www.sphere.com/search?q=sphereit:http://www.metablocks.com/blog/2009/01/27/adobe-air-widget-platform/">Sphere: Related Content</a></span><div style='padding:3px'></div>]]></content:encoded>
			<wfw:commentRss>http://www.metablocks.com/blog/2009/01/27/adobe-air-widget-platform/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
