<?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>creacog &#187; bug</title>
	<atom:link href="http://blog.creacog.co.uk/category/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creacog.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 16 Jul 2010 11:46:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex / AIR / DataGrid / itemEditor bug?</title>
		<link>http://blog.creacog.co.uk/2008/04/16/flex-air-datagrid-itemeditor-bug/</link>
		<comments>http://blog.creacog.co.uk/2008/04/16/flex-air-datagrid-itemeditor-bug/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 16:51:25 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2008/04/16/flex-air-datagrid-itemeditor-bug/</guid>
		<description><![CDATA[If you are using DataGrid in a Flex/AIR application, the chances are you will at some stage hit the following RunTime error&#8230;
TypeError: Error #1010: A term is undefined and has no properties.
.. with a traceback indicating the error occurred within DataGrid.as. At which point you will stare at your own code for a while and [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using DataGrid in a Flex/AIR application, the chances are you will at some stage hit the following RunTime error&#8230;</p>
<p>TypeError: Error #1010: A term is undefined and has no properties.</p>
<p>.. with a traceback indicating the error occurred within DataGrid.as. At which point you will stare at your own code for a while and wonder why.</p>
<p>In my circumstance I pinned this down to clearing the contents of the data provider and repopulating when there is an item renderer active on the DataGrid. A use-case that probably doesn&#8217;t come up that often in web-based Flex apps, since if the user clicks another control to trigger an update, the item renderer is exited at that point and the edit committed prior to the dataprovider changing.</p>
<p>In an AIR app, we have native menus available to us. When the user employs native menu selection, the item editor remains active. If that menu option triggers a repolpulation of the data provider (use-case example File&gt;Open), we then get the error.</p>
<p>The workaround is pretty simple. A call needs to be made to destroyItemEditor() on the DataGrid instance before repopulating it&#8217;s data. In a simple application this is no great problem. But if you&#8217;ve gone to the effort of using something like the PureMVC framework to separate Data Object from View Components, the data object isn&#8217;t supposed to have any knowledge of the view. So in my case thefix is quite crude &#8211; when issuing the open command, a notification  to destory item editors will be issued so any view component that uses them may destroy their editor prior to the repopulation.</p>
<p>My contention is that it should be the responsibilty of the DataGrid to destroy the item editor if the dataprovider updates.</p>
<p>I have this logged as a bug with Adobe (<a href="https://bugs.adobe.com/jira/browse/SDK-15280" title="#1010 runtime error when repopulating datagrid dataprovider while a field is editable">SDK-15280</a>), along with sample code demonstrating the issue. Feel free to review and vote for the bug if you are in agreement with my point and comment further therein if you disagree or have better suggestions to offer.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2008/04/16/flex-air-datagrid-itemeditor-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flex, mac, external browser</title>
		<link>http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/</link>
		<comments>http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/#comments</comments>
		<pubDate>Fri, 31 Aug 2007 23:21:48 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/</guid>
		<description><![CDATA[Ted Patrick has been quite prolific of late at publishing little productivity hints and tips. I think this one from a couple of weeks ago is worth echoing and noting the workaround for the problem it raises on a Mac.
We are setting up Builder to launch the help pages into an external browser. The key [...]]]></description>
			<content:encoded><![CDATA[<p>Ted Patrick has been quite prolific of late at publishing little productivity hints and tips. I think <a href="http://www.onflex.org/ted/2007/08/flex-builder-tip-preferences-general.php" title="Flex Builder Tip - Preferences &gt; General &gt; Web Browser">this one from a couple of weeks ago</a> is worth echoing and noting the workaround for the problem it raises on a Mac.</p>
<p>We are setting up Builder to launch the help pages into an external browser. The key advantage of which being that the code samples can then be copy/pasted. On a Mac there is a <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=95017" title="Bugzilla – Bug 95017">recognised bug in eclipse</a> that if you choose Firefox as the external browser, and it is NOT your normal system default browser. Basically Eclipse attempts to launch a second instance of Firefox which will generate the &#8220;Only one copy of Firefox can be open at a time&#8221; dialogue&#8230;</p>
<p><img src="http://blog.creacog.co.uk/wp-content/uploads/2007/08/firefoxclose.jpg" alt="Firefox close dialogue" /></p>
<p>So to get around this, you have two options.</p>
<p>Option 1, if you have Firefox as your default browser for the entire system, simply choose &#8220;Default system Web browser&#8221; in the Eclipse preferences panel.</p>
<p>Option 2, if you want to keep something else set as your system default browser e.g. Safari, but would use Firefox for displaying Flex Builder help, you need to either edit or create a new external browser entry using a command structure as per <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=95017#c5" title="comment 5">comment 5 on the eclipse bug sheet</a>. Essentially the following settings work&#8230;</p>
<ul>
<li>Location: /usr/bin/open</li>
<li>Parameters:  -a firefox %URL%</li>
</ul>
<p><img src="http://blog.creacog.co.uk/wp-content/uploads/2007/09/fbprefs.jpg" alt="Flex Builder &gt; General &gt; Web Browser &gt;Edit external browser" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2007/09/01/flex-mac-external-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>a little fireworks CS3 bug</title>
		<link>http://blog.creacog.co.uk/2007/07/18/a-little-fireworks-cs3-bug/</link>
		<comments>http://blog.creacog.co.uk/2007/07/18/a-little-fireworks-cs3-bug/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 16:10:32 +0000</pubDate>
		<dc:creator>creacog</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[CS3]]></category>
		<category><![CDATA[Fireworks]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/07/18/a-little-fireworks-cs3-bug/</guid>
		<description><![CDATA[Well in my opinion incorrect user-interface behaviour rather than a bug. I just used Adobe&#8217;s report a bug form, but ironically my Safari crashed when I hit the submit button, so I&#8217;ve currently got no idea if this went forward.
The issue concerned is not new and not really a big deal, but I just had [...]]]></description>
			<content:encoded><![CDATA[<p>Well in my opinion incorrect user-interface behaviour rather than a bug. I just used <a href="http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform" title="Adobe - Feature Request / Bug Report Form">Adobe&#8217;s report a bug form</a>, but ironically my Safari crashed when I hit the submit button, so I&#8217;ve currently got no idea if this went forward.</p>
<p>The issue concerned is not new and not really a big deal, but I just had to process a pile of images and it bit me so many times I had to get it out of my system by writing about it&#8230;</p>
<blockquote><p>The interpretation of the tab key within the properties panel for certain selected tools is in my opinion incorrect and is inconsistent with established convention.</p></blockquote>
<p><strong>Example 1:</strong> Marquee tool selected:</p>
<p>1. Set the style to Fixed Ratio or Fixed size<br />
2. Double-click the marquee width property<br />
3. Type with desired width.<br />
4. Hit tab</p>
<p>At this point I&#8217;d expect the focus to tab across to the Marquee height property. But it doesn&#8217;t. It sets the focus on the marquee width property and selects it. I need to hit Tab a second time to get to the height property.</p>
<p>I&#8217;ve been caught by this so many times. It is impossible to learn to accommodate to this odd behaviour because in every other application I have ever used, tab takes focus to the <strong>next</strong> input field.</p>
<p><strong>Example 2 :</strong> Eraser tool selected:</p>
<p>This shows more clearly the logic which has been implemented.</p>
<p>1. Double-click the value of the Size property<br />
2. Type a new value<br />
3. Hit tab</p>
<p>Again, instead of tabbing to the next input field (Edge) the focus remains at the Size property &#8211; value selected.</p>
<p>4. Double-click the Edge property<br />
5. Type a new value<br />
6. Hit tab</p>
<p>At this point instead of tabbing to the next field (Opacity), you tab back to the Size property!</p>
<p>In summary, it seems the implemented behaviour is that the <strong>first</strong> use of tab within a field-set of the properties panel always tabs to the <strong>first</strong> item of that field-set, the tab sequence is thereafter obeyed until you leave the field-set. I feel the behaviour should always be to tab from the <strong>current</strong> field to the <strong>next</strong>.</p>
<p>I&#8217;m a programmer rather than graphics dude and I use Fireworks infrequently. So many times I&#8217;ve typed a width, tab, then a height only to find I&#8217;ve just overwritten the width with the height &#8211; no big deal &#8211; but a tad annoying!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creacog.co.uk/2007/07/18/a-little-fireworks-cs3-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
