<?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>pixelbreaker &#187; Mac</title>
	<atom:link href="http://blog.pixelbreaker.com/category/mac/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.pixelbreaker.com</link>
	<description></description>
	<lastBuildDate>Wed, 11 Jan 2012 17:01:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Development with Mobile devices/VMs and local hosting</title>
		<link>http://blog.pixelbreaker.com/mac/devices-host-proxy-hosts</link>
		<comments>http://blog.pixelbreaker.com/mac/devices-host-proxy-hosts#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:38:21 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/?p=196</guid>
		<description><![CDATA[I&#8217;ve longed for a way to avoid having duplicate host files on all my virtual machines for a while now. And when I relalised there was is no way on iPad to modify hosts, I had to find a way. Here&#8217;s my solution, using a proxy on my host machine, and pointing iPad, mobile, and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve longed for a way to avoid having duplicate host files on all my virtual machines for a while now. And when I relalised there was is no way on iPad to modify hosts, I had to find a way. Here&#8217;s my solution, using a proxy on my host machine, and pointing iPad, mobile, and Virtual Box guest OSes to the proxy.<br />
<span id="more-196"></span></p>
<p>If you care at all about developing good websites, then you test on platforms other then the one you chose. These days, this includes mobile and tablet devices. I&#8217;m lucky with my latest projects, the target browsers are FF6+, Google Chrome, Safari 5 and iPad iOS5.</p>
<p>I usually host sites I&#8217;m developing locally, a simple LAMP setup. I then add a pseudo-domain to my hosts file <code>/etc/hosts</code> along these lines:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">127.0.0.1       portfolio.<span style="color: #660066;">dev</span>
127.0.0.1       blog.<span style="color: #660066;">dev</span></pre></div></div>

<p>This is all well and good when I&#8217;m accessing the server from my own machine (which relies on this host file before DNS servers), but when inside a VM (Virtual Machine, I use <a href="https://www.virtualbox.org/">VirtualBox</a> running Win XP/7 and Ubuntu) testing, you have to mess about doing the same hacks to the windows/linux hosts file, and working out what the IP of the host OS is. I got sick of doing this.</p>
<p>And to top this off, when I got an iPad for testing, upon realising there is no hosts file, had to find another solution. This is where a local proxy server comes in. I&#8217;ve used <a href="http://www.charlesproxy.com/">Charles: Web Debugging</a> Proxy for years. It&#8217;s perfect for inspecting requests and responses, can handles many types of data, AMF, JSON etc. Basically, it makes web application development a hell of a lot easier!</p>
<p>I then googled a bit, and found that if I set an HTTP proxy on the iPad, it would route DNS requests through there too. So the hosts file on my development machine, would work on the iPad!!! Simply start up Charles, then go to your WiFi settings on the iPad and configure the HTTP proxy. By default, Charles uses the port 8888.</p>
<p>You can also add these settings in any Virtual Machines you&#8217;re running on your machine. I&#8217;ve tested this in Windows XP and Windows 7 running on Virtual Box. If anyone tests this on Parallels, please let me know if it works.</p>
<p>Here&#8217;s some example configs on iPad and Windows 7 running in Virtual Box.<br/><br />
<a href="http://blog.pixelbreaker.com/wp-content/uploads/2012/01/iPad-Proxy.png"><img src="http://blog.pixelbreaker.com/wp-content/uploads/2012/01/iPad-Proxy-300x225.png" alt="" title="iPad Proxy" width="300" height="225" class="alignleft size-medium wp-image-199" style="display: inline-block;" /></a><br />
<a href="http://blog.pixelbreaker.com/wp-content/uploads/2012/01/Screen-Shot-2012-01-11-at-16.28.08.png"><img src="http://blog.pixelbreaker.com/wp-content/uploads/2012/01/Screen-Shot-2012-01-11-at-16.28.08-300x229.png" alt="" title="Screen Shot 2012-01-11 at 16.28.08" width="300" height="229" class="alignleft size-medium wp-image-201" style="display: inline-block;" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/mac/devices-host-proxy-hosts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PolarClock3 for Snow Leopard</title>
		<link>http://blog.pixelbreaker.com/mac/polarclock3-for-snow-leopard</link>
		<comments>http://blog.pixelbreaker.com/mac/polarclock3-for-snow-leopard#comments</comments>
		<pubDate>Mon, 21 Dec 2009 12:58:33 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Play]]></category>
		<category><![CDATA[Screensaver]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/?p=129</guid>
		<description><![CDATA[I&#8217;ve had some time this morning to wrap the screensaver up in something other than screentime, and it all works perfectly for me. My first delve into Cocoa. Thanks Si Heys for the code I needed for this. Please have a go and let me know if it works ok on Snow Leopard, and also [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had some time this morning to wrap the screensaver up in something other than screentime, and it all works perfectly for me. My first delve into Cocoa. Thanks <a href="http://www.simonheys.com" target="_blank">Si Heys </a>for the code I needed for this.</p>
<p>Please have a go and let me know if it works ok on Snow Leopard, and also older OSes, if there&#8217;s problems, comment here, and I&#8217;ll try and rectify any issues.</p>
<p>You can <a href="http://blog.pixelbreaker.com/downloads/polarclock/PolarClock3_osx_snow_leopard.zip">download it here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/mac/polarclock3-for-snow-leopard/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>AS3.0 MouseWheel on Mac OS X</title>
		<link>http://blog.pixelbreaker.com/mac/as30-mousewheel-on-mac-os-x</link>
		<comments>http://blog.pixelbreaker.com/mac/as30-mousewheel-on-mac-os-x#comments</comments>
		<pubDate>Wed, 06 Feb 2008 23:34:56 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/flash/as30-mousewheel-on-mac-os-x/</guid>
		<description><![CDATA[I&#8217;ve finally found the time to port my SWFObject add-on SWFMacMouseWheel (catchy I know) to ActionScript 3.0 and SWFObject 2.0 There&#8217;s now two examples in the zip, one for use with SWFObject 1.5, and a totally re-written version for use with SWFObject 2.0 (formerly SWFFix) All you have to do in your main application class [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally found the time to port my SWFObject add-on SWFMacMouseWheel (catchy I know) to ActionScript 3.0 and SWFObject 2.0</p>
<p>There&#8217;s now two examples in the zip, one for use with <a href="http://blog.deconcept.com/swfobject/">SWFObject 1.5</a>, and a totally re-written version for use with <a href="http://code.google.com/p/swfobject/">SWFObject 2.0</a> (formerly SWFFix)</p>
<p>All you have to do in your main application class (or document class) is</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">pixelbreaker</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">osx</span>.<span style="color: #006600;">MacMouseWheel</span>;
&nbsp;
MacMouseWheel.<span style="color: #006600;">setup</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">stage</span> <span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>You can then add listeners to TextFields, Sprites etc etc as you normally would any other MouseEvent.</p>
<p>Example JavaScript to be used with the dynamic embed method</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> vars <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> params <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> scale<span style="color: #339933;">:</span><span style="color: #3366CC;">'noScale'</span><span style="color: #339933;">,</span> salign<span style="color: #339933;">:</span><span style="color: #3366CC;">'lt'</span><span style="color: #339933;">,</span> menu<span style="color: #339933;">:</span><span style="color: #3366CC;">'false'</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> attributes <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span> id<span style="color: #339933;">:</span><span style="color: #3366CC;">'testObject'</span><span style="color: #339933;">,</span> <span style="color: #000066;">name</span><span style="color: #339933;">:</span><span style="color: #3366CC;">'testObject'</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// give an id to the flash object</span>
&nbsp;
swfobject.<span style="color: #660066;">embedSWF</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;test_as3.swf&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;flashContent&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;100%&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;100%&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;9.0.0&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;js/expressInstall.swf&quot;</span><span style="color: #339933;">,</span> vars<span style="color: #339933;">,</span> params<span style="color: #339933;">,</span> attributes <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
swfmacmousewheel.<span style="color: #660066;">registerObject</span><span style="color: #009900;">&#40;</span>attributes.<span style="color: #660066;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>I have updated the SWFObject 2.0 version to be more compact, and it also falls inline with the code style of SWFObject2.0. see <em>swfmacmousewheel_src.js</em> for the uncompressed version, deploy <em>swfmacmousewheel2.js</em> on your site.</p>
<p>Download <a href="http://blog.pixelbreaker.com/downloads/swfmacmousewheel_as3.zip">source and demo here</a> or view the <a href="http://blog.pixelbreaker.com/downloads/swfmacmousewheelas3demo/index_as3.html">demo online</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/mac/as30-mousewheel-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PolarClock on OS X Leopard</title>
		<link>http://blog.pixelbreaker.com/mac/polarclock-on-os-x-leopard</link>
		<comments>http://blog.pixelbreaker.com/mac/polarclock-on-os-x-leopard#comments</comments>
		<pubDate>Wed, 31 Oct 2007 15:13:24 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Screensaver]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/flash/polarclock-on-os-x-leopard/</guid>
		<description><![CDATA[I&#8217;ve found a bug in screentime, the software used to pack up PolarClock as a screensaver. When run on Leopard, after the screensaver exits back to the desktop, the Function keys and any shortcuts to the Dashboard or exposé don&#8217;t work. I have contacted screentime about this issue, and will post a fix a.s.a.p]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found a bug in screentime, the software used to pack up PolarClock as a screensaver. When run on Leopard, after the screensaver exits back to the desktop, the Function keys and any shortcuts to the Dashboard or exposé don&#8217;t work. I have contacted screentime about this issue, and will post a fix a.s.a.p</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/mac/polarclock-on-os-x-leopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PolarClock Dashboard Widget</title>
		<link>http://blog.pixelbreaker.com/mac/polarclock-dashboard-widget</link>
		<comments>http://blog.pixelbreaker.com/mac/polarclock-dashboard-widget#comments</comments>
		<pubDate>Thu, 19 Jul 2007 18:24:23 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/flash/polarclock-dashboard-widget/</guid>
		<description><![CDATA[A lot of people had been asking for this as a widget. So i&#8217;ve put together this version for the OS X Dashboard. The options are limited to language selection only. Download: [zip] PolarClock OSX Widget 356Kb I had no idea how widgets were built until this morning, and to my pleasant surprise, they are [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.pixelbreaker.com/wp-content/uploads/2007/07/widget.jpg" alt="widget.jpg" /></p>
<p>A lot of people had been asking for this as a widget. So i&#8217;ve put together this version for the OS X Dashboard. The options are limited to language selection only.</p>
<p>Download:<br />
[zip] <strong><a href="/downloads/polarclock/PolarClock3_osx_wdgt.zip">PolarClock OSX Widget</a> </strong>356Kb</p>
<p><span id="more-52"></span>I had no idea how widgets were built until this morning, and to my pleasant surprise, they are basically Safari (WebKit) running on a transparent background. A good place to start is on the <a href="http://developer.apple.com/macosx/dashboard.html" target="_blank">apple site</a>.</p>
<p>The PolarClock widget is basically a blend on HTML, JavaScript and Flash, embedded using SWFObject. The one major issue was that I couldn&#8217;t get Flash movies to display in my widget. All you have to do is add an extra flag in the info.plist file named &#8220;AllowInternetPlugins&#8221; and set it to true.</p>
<p>[xml]<br />
<key>AllowInternetPlugins</key></p>
<true />
[/xml]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/mac/polarclock-dashboard-widget/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PolarClock 3.0 Release</title>
		<link>http://blog.pixelbreaker.com/mac/polarclock-30-release</link>
		<comments>http://blog.pixelbreaker.com/mac/polarclock-30-release#comments</comments>
		<pubDate>Sat, 14 Jul 2007 18:21:45 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Play]]></category>
		<category><![CDATA[Screensaver]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/flash/polarclock-30-release/</guid>
		<description><![CDATA[It&#8217;s all done! Re-worked from the ground up in ActionScript 3, this release should be much less CPU intensive, and has had heaps of new features added. Read all about it at it&#8217;s new permanent home. PolarClock Home]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.pixelbreaker.com/polarclock/"><img src="http://blog.pixelbreaker.com/wp-content/launch.jpg" alt="launch.jpg" id="image45" height="332" width="500" /></a></p>
<p>It&#8217;s all done!</p>
<p>Re-worked from the ground up in ActionScript 3, this release should be much less CPU intensive, and has had heaps of new features added. Read all about it at it&#8217;s new permanent home.</p>
<p><a href="http://blog.pixelbreaker.com/polarclock/" title="PolarClock's new home">PolarClock Home</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/mac/polarclock-30-release/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Polar Clock 3.0 development</title>
		<link>http://blog.pixelbreaker.com/mac/polar-clock-30-development</link>
		<comments>http://blog.pixelbreaker.com/mac/polar-clock-30-development#comments</comments>
		<pubDate>Sat, 07 Jul 2007 21:09:45 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Screensaver]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/uncategorized/polar-clock-30-development/</guid>
		<description><![CDATA[Just an update of how the development of the next release of the clock is going. I&#8217;ve ported 90% of the engine to actionscript 3.0 now, and begun implementation of a config panel built using Flex Builder 3 (Moxie). I&#8217;ve now got the following language implemented: English, Afrikaans, Chinese, Danish, Dutch, French, Finnish, German, Greek, [...]]]></description>
			<content:encoded><![CDATA[<p><img id="image32" alt="pc3.jpg" src="http://blog.pixelbreaker.com/wp-content/pc3.jpg" /><br />
Just an update of how the development of the next release of the clock is going.</p>
<p>I&#8217;ve ported 90% of the engine to actionscript 3.0 now, and begun implementation of a config panel built using Flex Builder 3 (Moxie). I&#8217;ve now got the following language implemented: English, Afrikaans, Chinese, Danish, Dutch, French, Finnish, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Portugese, Portugese (Brazil), Polish, Romanian, Russian, Spanish, Swedish, Slovakian, Thai, Turkish and Vietnamese.</p>
<p>I have spoken to a guy at ScreenTime (who make <a target="_blank" href="http://www.screentime.com/software/stf/">screentime for flash</a>) and they are sending me an updated version for windows in a couple of days, to match up the sizes of the config panels with the latest release for mac. Yeah, I bought screentime for mac + windows!!!</p>
<p>I&#8217;m hoping to launch version 3 of the clock on of before 21/07/07. Keep checking for updates!</p>
<p>So far there have been over 40,000 downloads of v1 and 2, it&#8217;s much much more popular than I ever expected!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/mac/polar-clock-30-development/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SWFObject add-on: MouseWheel on Mac OS</title>
		<link>http://blog.pixelbreaker.com/open-source/swfmacmousewheel</link>
		<comments>http://blog.pixelbreaker.com/open-source/swfmacmousewheel#comments</comments>
		<pubDate>Wed, 08 Nov 2006 00:13:21 +0000</pubDate>
		<dc:creator>gabes</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://blog.pixelbreaker.com/2006/11/08/flash/deconcept-swfobject-mousewheel-for-mac/</guid>
		<description><![CDATA[I&#8217;ve had the mouse wheel working in flash on OS X for a while, and after seeing the SWFAddress add-on for deconcept&#8217;s SWFObject embedding system, I thought I&#8217;d add mousewheel functionality to SWFObject, rather than using my own &#8220;frankenstein&#8221; embedding system. It&#8217;s straight forward to implement. Download SWFMacMouseWheel here. Within ActionScript, you&#8217;ll barely notice any [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had the mouse wheel working in flash on OS X for a while, and after seeing the <a href="http://www.asual.com/swfaddress/" target="_blank">SWFAddress</a> add-on for <a href="http://blog.deconcept.com/swfobject/" target="_blank">deconcept&#8217;s SWFObject</a> embedding system, I thought I&#8217;d add mousewheel functionality to SWFObject, rather than using my own &#8220;frankenstein&#8221; embedding system.</p>
<p>It&#8217;s straight forward to implement. Download <a href="/downloads/swfmacmousewheel.zip"><span id="mce_editor_0_parent"></span>SWFMacMouseWheel here</a>.</p>
<p><a href="/downloads/swfmacmousewheel.zip"><span id="mce_editor_0_parent"></span></a><br />
<span id="more-9"></span><br />
Within ActionScript, you&#8217;ll barely notice any difference. Only that instead of using Mouse.addListener(), you&#8217;ll refer to my class instead.</p>
<p>Example code:</p>
<p>[as]<br />
import com.pixelbreaker.ui.MouseWheel;</p>
<p>class Example<br />
{</p>
<p>function Example(){<br />
MouseWheel.addListener( this );<br />
}</p>
<p>public function onMouseWheel( delta:Number ):Void<br />
{<br />
// do something with the delta value<br />
}<br />
}</p>
<p>[/as]</p>
<p>All the javascript is included in the zip, with an example html file.</p>
<p>You simply have to add one line of code to the javascript:</p>
<p>[js]<br />
var so = new SWFObject(&#8216;test.swf&#8217;, &#8216;website&#8217;, &#8217;100%&#8217;, &#8217;100%&#8217;, &#8217;8&#8242;, &#8216;#FFFFFF&#8217;);</p>
<p>so.useExpressInstall(&#8216;js/expressinstall.swf&#8217;);</p>
<p>so.addParam(&#8216;menu&#8217;, &#8216;false&#8217;);<br />
so.addParam(&#8216;scale&#8217;, &#8216;noscale&#8217;);<br />
so.addParam(&#8216;salign&#8217;, &#8216;lt&#8217;);</p>
<p>// CHANGE BELOW<br />
if( so.write(&#8216;flashcontent&#8217;) )<br />
{<br />
var macmousewheel = new SWFMacMouseWheel( so );<br />
}<br />
[/js]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pixelbreaker.com/open-source/swfmacmousewheel/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

