<?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>WS-Blog &#187; OS X</title>
	<atom:link href="http://www.websector.de/blog/category/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websector.de/blog</link>
	<description>// Flex, AIR, Flash</description>
	<lastBuildDate>Wed, 16 Jun 2010 09:25:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WSPluginSwitcher: Cocoa based tool for switching Flash plug-in on OS X</title>
		<link>http://www.websector.de/blog/2009/01/02/wspluginswitcher-cocoa-based-tool-for-switching-flash-plug-in-on-os-x/</link>
		<comments>http://www.websector.de/blog/2009/01/02/wspluginswitcher-cocoa-based-tool-for-switching-flash-plug-in-on-os-x/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 15:54:12 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/?p=104</guid>
		<description><![CDATA[It&#8217;s never to late to learn a new (programming) language So I&#8217;ve been starting to learn Cocoa, Apple&#8217;s Objective-C based programming environment for Mac OS X. My &#8220;Cocoa&#8221;-trip started with building a little application called &#8220;WSPluginSwitcher&#8220;, which is a Cocoa based tool for switching Flash plug-ins on OS X (Leopard). Check it out &#8211; it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><br />
<img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/logo450x76.png" width="450" height="76"  /></a></p>
<p>It&#8217;s never to late to learn a new (programming) language <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So I&#8217;ve been starting to learn <a href="http://developer.apple.com/cocoa/ ">Cocoa</a>, Apple&#8217;s Objective-C based programming environment for Mac OS X. </p>
<p>My &#8220;Cocoa&#8221;-trip started with building a little application called &#8220;<a href="http://code.google.com/p/wspluginswitcher/">WSPluginSwitcher</a>&#8220;, which is a Cocoa based tool for switching Flash plug-ins on OS X (Leopard). </p>
<p><span id="more-104"></span></p>
<p>Check it out &#8211; it&#8217;s open source, including its source code: <a href="http://code.google.com/p/wspluginswitcher/">WSPluginSwitcher on Google Code</a></p>
<h2>Screen shots</h2>
<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/WSPluginSwitcher_mainWindow.png" width="328" height="390"  /></a></p>
<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/WSPluginSwitcher_prefsWindow.png" width="352" height="303"  /></a></p>
<p><a href="http://code.google.com/p/wspluginswitcher/" class="img"><img src="http://www.websector.de/blog/wp-content/uploads/2009/01/02/WSPluginSwitcher_desktopIcon.png" width="510" height="217"  /></a></p>
<h2>Download WSPluginSwitcher including full source</h2>
<p>You can download WSPluginSwitcher at its <a href="http://code.google.com/p/wspluginswitcher/">Google Code project</a>.</p>
<p>To get the full source checkout the latest code using <a href="http://code.google.com/p/wspluginswitcher/source/checkout">WSPluginSwitchers repository</a> at Google Code. </p>
<p>It&#8217;s open source!</p>
<p>BTW: I&#8217;m very new to Cocoa, so I&#8217;m very happy about any feedback <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>Helpful links for learning Cocoa as an ActionScript Developer</h2>
<p>About 10 days of programming a new language is not enough to make a real statement&#8230; However, what I&#8217;ve have learned so far is: <strong>To learn Cocoa as quick as possible you will need a good book!</strong> Apple delivers <a href="http://developer.apple.com/documentation/Cocoa/index.html">tons of Cocoa guides</a>, but it takes me (too) much time to find basic solutions. I know why I love Adobes Flex and AIR docs <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>So I highly recommend the book called <a href="http://www.amazon.com/Cocoa-Programming-Mac-OS-3rd/dp/0321503619/">&#8220;Cocoa Programming for Max OS X&#8221; by Aaron Hillegass</a>, which helps me a lot!</p>
<p>Further helpful links (not only for ActionScript Developers) are:</p>
<ul>
<li><a href="http://cocoadevcentral.com/">Cocoa Dev Central</a>: <a href="http://cocoadevcentral.com/">Learn Cocoa</a></li>
<li><a href="http://theocacao.com/">Theocacao</a>: <a href="http://theocacao.com/document.page/510">A Quick Objective-C 2.0 Tutorial</a></li>
<li><a href="http://andyj.be/blog/">Andy Jacobs</a>: &#8220;<a href="http://andyj.be/blog/?p=3">Cocoa touch for actionscript developers (basics)</a>&#8220;, &#8220;<a href="http://andyj.be/blog/?p=25">AS3 to Cocoa Touch: Array’s</a>&#8220;, &#8220;<a href="http://andyj.be/blog/?p=37">AS3 to Cocoa touch: XML</a>&#8220;, &#8220;<a href="http://andyj.be/blog/?p=52">AS3 to Cocoa touch: JSON (Part 1)</a>&#8221;
<li><a href="http://www.bit-101.com/blog/">Keith Peters:</a> Gravity Tutorials for iPhone <a href="http://www.bit-101.com/blog/?p=1784">Part 1</a>, <a href="http://www.bit-101.com/blog/?p=1793">Part 2</a>, <a href="http://www.bit-101.com/blog/?p=1798">Part 3</a>, <a href="http://www.bit-101.com/blog/?p=1812">Part 4</a>, <a href="http://www.bit-101.com/blog/?p=1824">Part 5</a></li>
</ul>
<p>P.S.: Happy Flash plug-in switching using WSPluginSwitcher! <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2009/01/02/wspluginswitcher-cocoa-based-tool-for-switching-flash-plug-in-on-os-x/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Extension for Zeroi: XTracePublisher</title>
		<link>http://www.websector.de/blog/2007/03/12/extension-for-zeroi-xtracepublisher/</link>
		<comments>http://www.websector.de/blog/2007/03/12/extension-for-zeroi-xtracepublisher/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 03:30:00 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[MTASC]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/2007/03/12/extension-for-zeroi-xtracepublisher/</guid>
		<description><![CDATA[Xtrace is a popular debugger console on OS X for logging your trace() data outside the Flash IDE. For easier handling I decided to write an extension for Zeroi that keeps your standard trace() methods in your code. Here is a screen of a XTrace window receiving Zerois debug messages: Instructions Grab the latest source [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://developer.mabwebdesign.com/xtrace.html">Xtrace</a> is a popular debugger console on OS X for logging your <code>trace()</code> data outside the Flash IDE. For easier handling I decided to write an extension for <a href="http://osflash.org/Zeroi">Zeroi</a> that keeps your standard <code>trace()</code> methods in your code.</p>
<p><span id="more-18"></span></p>
<p>Here is a screen of a XTrace window receiving Zerois debug messages:</p>
<p><img src="http://www.websector.de/blog/wp-content/uploads/2007/03/xtrace-window.png" alt="XTrace Window" /></p>
<h2>Instructions</h2>
<ol>
<li>Grab the latest source of Zeroi from its <a href="http://code.google.com/p/zeroi/source">Subversion Repository</a>. You will find there the new extension for XTrace, too.</li>
<li>Download and install <a href="http://developer.mabwebdesign.com/xtrace.html">XTrace</a>. For enjoying the latest features (e.g. text highlighting) it&#8217;s recommended to use the <a href="http://svn.mabwebdesign.com/xtrace">XTrace SVN Repository</a>.</li>
<li>Download the <a href="http://www.websector.de/blog/download-manager.php?id=1">Zeroi example</a> and follow the steps 4 up to 7 described in my previous post called <a href="http://www.websector.de/blog/2007/03/04/debugging-with-mtasc-ant-and-zeroi/">&#8220;Debugging with MTASC, Ant and Zeroi&#8221;</a>.</li>
<li>Add <em>XTracePublisher</em> as Zerois publisher to MTASC <code>-trace</code> flag. For this purpose you have to change only one line in the Ant script located in my example:
<phpcode>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&lt;arg value=<span class="st0">&quot;-trace&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;arg value=<span class="st0">&quot;org.osflash.Zeroi.logging.LoggerClass.log&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;arg value=<span class="st0">&quot;org/osflash/Zeroi/logging/LoggerClass&quot;</span>/&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;!&#8211; point <span class="kw3">this</span> argument to XTracePublisher &#8211;&gt;</div>
</li>
<li class="li1">
<div class="de1">&lt;arg value=<span class="st0">&quot;org/osflash/Zeroi/logging/publisher/XTracePublisher&quot;</span>/&gt;</div>
</li>
</ol>
</div>
</phpcode>
	</li>
<li>If you familiar with Terminal you can also create a small shell script to run MTASC instead using Ant. Open Terminal, change directory<br />
<code>cd {path/to/downloaded/zeroiExample}</code><br />
and create a new file named <em>build</em><code>pico ./build</code></p>
<p>Type then the following line for running MTASC:</p>
<phpcode>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#123;</span>path/to/mtasc<span class="br0">&#125;</span> -cp <span class="br0">&#123;</span>path/to/your/own/core/classes<span class="br0">&#125;</span> -cp <span class="br0">&#123;</span>path/to/MM/core/classes<span class="br0">&#125;</span> -cp <span class="br0">&#123;</span>path/to/zeroi/<span class="kw2">class</span>/package<span class="br0">&#125;</span> -cp ./source/ -swf ./deploy/zeroiExample.<span class="me1">swf</span> ./ZeroiExample.<span class="me1">as</span> -<span class="kw3">trace</span> org.<span class="me1">osflash</span>.<span class="me1">Zeroi</span>.<span class="me1">logging</span>.<span class="me1">LoggerClass</span>.<span class="kw3">log</span> org/osflash/Zeroi/logging/LoggerClass org/osflash/Zeroi/logging/publisher/XTracePublisher -frame <span class="nu0">1</span> -<span class="kw3">version</span> <span class="nu0">7</span> -v -main</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
</phpcode>
For opening the *.swf with the FlashPlayer type additionally:</p>
<phpcode>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">open -a SAFlashPlayer ./deploy/zeroiExample.<span class="me1">swf</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
</phpcode>
<p>Save the file, close pico and run the script typing <code>./build</code></li>
</ol>
<h2>Wish list</h2>
<ul>
<li>Adding more log levels, such as &#8220;INFO&#8221; and &#8220;FATAL&#8221;. I&#8217;ve got in contact with <a href="http://developer.mabwebdesign.com/about.html">Michael Bianco</a> <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  .</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2007/03/12/extension-for-zeroi-xtracepublisher/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Are you looking for AFTERTHOUGHT on OS X?</title>
		<link>http://www.websector.de/blog/2007/02/21/are-you-looking-for-afterthought-on-os-x/</link>
		<comments>http://www.websector.de/blog/2007/02/21/are-you-looking-for-afterthought-on-os-x/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 18:40:44 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/2007/02/21/are-you-looking-for-afterthought-on-os-x/</guid>
		<description><![CDATA[AFTERTHOUGHT is an amazing tool for debugging Flash movies, but it runs only on Windows and it needs .NET runtime. It seems that a Mac version will be available soon but you won&#8217;t need it. Because OS X provides a suite of developer tools such as Console which you can view the message logs of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://broadcast.artificialcolors.com/index.php?title=afterthought_2_1_now_with_search">AFTERTHOUGHT</a> is an amazing tool for debugging Flash movies, but it runs only on Windows and it needs .NET runtime. It seems that a <a href="http://broadcast.artificialcolors.com/index.php?title=afterthought_on_osx">Mac version</a> will be available soon but you won&#8217;t need it. Because OS X provides a suite of developer tools such as Console which you can view the message logs of your Flash Debug Player in real time as well. If you are familiar with Terminal, you&#8217;ll optimize your debugging session as <a href="http://www.dirtystylus.com/blog/">Mark Llobrera</a> commented on <a href="http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php">Mark Walters&#8217; Blog</a>.</p>
<p><span id="more-14"></span></p>
<p>Configure your system as follows:</p>
<ol>
<li>Install and configure the Flash Debug Player as described in my previous article <a href="http://www.websector.de/blog/2007/02/20/trace-outside-the-flash-ide-with-tail/">&#8220;trace() outside the Flash IDE with tail&#8221;</a>. Follow the steps 1 up to 3 from there.</li>
<li>Start up a Terminal window and change the directory: <code>cd  /Users/</code></li>
<li>Type <code>pico .bash_profile</code> to open Pico and add two aliases named <code>trace</code> and <code>cleartrace</code> inside your <em>.bash_profile</em> located in <em>/Users/[username]/</em>
<pre># opens "flashlog.txt" in Console
alias trace='open -a /Applications/Utilities/Console.app/ /Users/[username]]/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt'
# clears "flashlog.txt"
alias cleartrace='cat /dev/null > /Users/[username]/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt'</pre>
</li>
<li>Save your <em>.bash_profile</em>, close pico and the shell. </li>
<li>Open a new shell and type <code>trace</code>. The <em>&#8220;flashlog.txt&#8221;</em> will be opened in Console and will be logged in run time. For searching log messages type a word or phrase in the Filter field.
<p>			<img src="http://www.websector.de/blog/wp-content/uploads/2007/02/screen-console.png" alt="Screen Console" height="277" width="519"/></p>
<p>			For clearing the <em>&#8220;flashlog.txt&#8221;</em> type <code>cleartrace</code>.</li>
</ol>
<p>Happy debugging <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2007/02/21/are-you-looking-for-afterthought-on-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>trace() outside the Flash IDE with tail</title>
		<link>http://www.websector.de/blog/2007/02/20/trace-outside-the-flash-ide-with-tail/</link>
		<comments>http://www.websector.de/blog/2007/02/20/trace-outside-the-flash-ide-with-tail/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 14:53:20 +0000</pubDate>
		<dc:creator>sectore</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.websector.de/blog/2007/02/20/trace-outside-the-flash-ide-with-tail/</guid>
		<description><![CDATA[As Josh Buhler and Mark Walters described it&#8217;s simple to log the trace() outputs of a SWF file running in Browser. If you familiar with Terminal you can also log the trace()-methods by using the Unix command tail. tail monitors in real time the growth of the logfile named &#8220;flashlog.txt&#8221; which is being written by [...]]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://www.joshbuhler.com/2004/11/20/using-the-trace-method-from-a-browser/" title="Using the trace(); method - from a BROWSER!">Josh Buhler</a> and <a href="http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php" title="Trace from the browser, using standard trace()">Mark Walters</a> described it&#8217;s simple to log the <code>trace()</code> outputs of a SWF file running in Browser. If you familiar with Terminal you can also log the <code>trace()</code>-methods by using the Unix command <a href="http://www.computerhope.com/unix/utail.htm" title="Information about the Linux / Unix tail command tail.">tail</a>.</p>
<p><span id="more-12"></span></p>
<p><code>tail</code> monitors in real time the growth of the logfile named <em>&#8220;flashlog.txt&#8221;</em> which is being written by the Flash Debug Player.</p>
<h2>Instructions</h2>
<ol>
<li> Check that you installed the Flash Debug Player on your machine successfully.<img src="http://www.websector.de/blog/wp-content/uploads/2007/02/contextmenuflashdebugplayer.png" /><br />
Press CTRL and click on a Flashmovie located in Browser and you&#8217;ll have a context menu with the &#8220;Debugger&#8221; option like the image above. If not, <a href="http://www.adobe.com/support/flashplayer/downloads.html#uninstaller">uninstall</a> the current Player and install the latest version of the <a href="http://www.adobe.com/support/flashplayer/downloads.html">Flash Debug Player</a>.</li>
<li>Add a textfile named <em>&#8220;flashlog.txt&#8221;</em> in the following folder:<br />
<em> /Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/</em></li>
<li>The Flash Debug Player needs a textfile named <em>&#8220;mm.cfg&#8221;</em>. Typically it&#8217;s located in <em>/Library/Application Support/Macromedia/mm.cfg</em>. If not, create it and add the following properties:
<phpcode>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">ErrorReportingEnable=<span class="nu0">0</span></div>
</li>
<li class="li1">
<div class="de1">TraceOutputFileEnable=<span class="nu0">1</span></div>
</li>
<li class="li1">
<div class="de1">MaxWarnings=<span class="nu0">0</span></div>
</li>
</ol>
</div>
</phpcode>
<strong>Note:</strong> If you have installed a Flash Debug Player older than version 9.0.28.0 you have to add a path to your <em>&#8220;flashlog.txt&#8221;</em> as well: </p>
<phpcode>
<div class="actionscript" style="font-family: monospace;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1">TraceOutPutFileName=Macintosh HD:Users:<span class="br0">&#123;</span>username<span class="br0">&#125;</span>:Library:Preferences:Macromedia:Flash Player:Logs:flashlog.<span class="me1">txt</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
</phpcode>
	</li>
<li>Open the Terminal and type <code>tail -f /Users/{username}/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt</code><img src="http://www.websector.de/blog/wp-content/uploads/2007/02/screen_terminal.png" alt="screen_terminal.png" /></li>
</ol>
<p>That&#8217;s it <img src='http://www.websector.de/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>P.S. If you have any trouble with your configuration, check <a href="http://www.digitalflipbook.com/archives/2005/07/trace_from_the.php" title="Trace from the browser, using standard trace()">Mark Walters&#8217;</a> detailed instructions, too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.websector.de/blog/2007/02/20/trace-outside-the-flash-ide-with-tail/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
