<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Quick iPhone Dev Tip: Creating an UIColor with just one RGB value</title>
	<atom:link href="http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/feed/" rel="self" type="application/rss+xml" />
	<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/</link>
	<description>Developing software using agile techniques</description>
	<lastBuildDate>Fri, 25 Dec 2009 18:19:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dbo</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-548</link>
		<dc:creator>dbo</dc:creator>
		<pubDate>Fri, 25 Dec 2009 18:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-548</guid>
		<description>Its so obvious that Im pretty sure that kind of method will be avaliable soon in the next SDK. Its a MUST! Thanks for your work, Mr FriendOfDesigner!</description>
		<content:encoded><![CDATA[<p>Its so obvious that Im pretty sure that kind of method will be avaliable soon in the next SDK. Its a MUST! Thanks for your work, Mr FriendOfDesigner!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pegolon</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-465</link>
		<dc:creator>pegolon</dc:creator>
		<pubDate>Sat, 03 Oct 2009 04:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-465</guid>
		<description>Thank you very much, Mr Aloha, for being so supportive.</description>
		<content:encoded><![CDATA[<p>Thank you very much, Mr Aloha, for being so supportive.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mr Aloha</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-464</link>
		<dc:creator>mr Aloha</dc:creator>
		<pubDate>Fri, 02 Oct 2009 08:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-464</guid>
		<description>@ this Amin guy: I&#039;ve come across your comments here and there every once in a while. And your attitude slowly starts to annoy me. We all try to get our work done in one way or another and we try to meet the projects requirements as good as we can. So I believe it does not help anyone to criticise his/her approach in this way.  Concerning this specific matter: May be your projects are not as visually oriented as others&#039;. In my world designers talk Hex colors. Photoshop just does not show colors with values ranging from 0 to 1. If you prefer to translate the color by hand that&#039;s cool for you BUT I have to skin my application with a whole lot of colors I get in Hex. This little macro does exactly what I need so please relax and let us do things our way.  - Talking about bad/good code: Hex colors make code easier for me since I can find my colors and alter them. For me three values ranging from 0 to 1 each seem strange and I can&#039;t interpretate them. They don&#039;t tell me anything. So please stay in your pseudo scientific world, write your next book and let us others get our work done!</description>
		<content:encoded><![CDATA[<p>@ this Amin guy: I&#8217;ve come across your comments here and there every once in a while. And your attitude slowly starts to annoy me. We all try to get our work done in one way or another and we try to meet the projects requirements as good as we can. So I believe it does not help anyone to criticise his/her approach in this way.  Concerning this specific matter: May be your projects are not as visually oriented as others&#8217;. In my world designers talk Hex colors. Photoshop just does not show colors with values ranging from 0 to 1. If you prefer to translate the color by hand that&#8217;s cool for you BUT I have to skin my application with a whole lot of colors I get in Hex. This little macro does exactly what I need so please relax and let us do things our way.  &#8211; Talking about bad/good code: Hex colors make code easier for me since I can find my colors and alter them. For me three values ranging from 0 to 1 each seem strange and I can&#8217;t interpretate them. They don&#8217;t tell me anything. So please stay in your pseudo scientific world, write your next book and let us others get our work done!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pegolon</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-436</link>
		<dc:creator>pegolon</dc:creator>
		<pubDate>Mon, 31 Aug 2009 10:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-436</guid>
		<description>Thank you, Torsten!</description>
		<content:encoded><![CDATA[<p>Thank you, Torsten!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torsten Curdt</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-435</link>
		<dc:creator>Torsten Curdt</dc:creator>
		<pubDate>Mon, 31 Aug 2009 10:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-435</guid>
		<description>The only problem I see here is the computation vs the dispatch. Arguing that it&#039;s the &quot;right thing&quot; (tm) to use a 0..1 range is useless as this is just a convenience macro. I don&#039;t see what is so wrong to define the color components in the 0..255 range instead. After all it&#039;s just a factor. And for what it&#039;s worth - most designer (I have worked with) do provide colors in that very format. Those hex digits are everywhere. Maybe you need to do a reality check there, Amin? ;-)</description>
		<content:encoded><![CDATA[<p>The only problem I see here is the computation vs the dispatch. Arguing that it&#8217;s the &#8220;right thing&#8221; &#8482; to use a 0..1 range is useless as this is just a convenience macro. I don&#8217;t see what is so wrong to define the color components in the 0..255 range instead. After all it&#8217;s just a factor. And for what it&#8217;s worth &#8211; most designer (I have worked with) do provide colors in that very format. Those hex digits are everywhere. Maybe you need to do a reality check there, Amin? <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pegolon</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-350</link>
		<dc:creator>pegolon</dc:creator>
		<pubDate>Fri, 12 Jun 2009 03:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-350</guid>
		<description>What kind of string do you want to put in it? BTW: it is no function, it is a macro, so it will be converted by the C preprocessor into plain C code.
Cheers,
Markus</description>
		<content:encoded><![CDATA[<p>What kind of string do you want to put in it? BTW: it is no function, it is a macro, so it will be converted by the C preprocessor into plain C code.<br />
Cheers,<br />
Markus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris the wild man</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-342</link>
		<dc:creator>Chris the wild man</dc:creator>
		<pubDate>Mon, 08 Jun 2009 13:35:14 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-342</guid>
		<description>I can not seem to figure out how to put an nsstring into this function. I&#039;ve been searching everywhere. Please help! Thanks for the code.</description>
		<content:encoded><![CDATA[<p>I can not seem to figure out how to put an nsstring into this function. I&#8217;ve been searching everywhere. Please help! Thanks for the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: walty</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-137</link>
		<dc:creator>walty</dc:creator>
		<pubDate>Thu, 18 Dec 2008 10:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-137</guid>
		<description>actually I did not look in detail about the comments. Anyway, this is very useful for me, thx a lot!</description>
		<content:encoded><![CDATA[<p>actually I did not look in detail about the comments. Anyway, this is very useful for me, thx a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig Cunic</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-133</link>
		<dc:creator>Craig Cunic</dc:creator>
		<pubDate>Sat, 13 Dec 2008 12:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-133</guid>
		<description>Very handy and very ridiculous to categorize as &quot;bad design&quot; 
New to Mac and iPhone.
This is what I would have expected the foundation to have</description>
		<content:encoded><![CDATA[<p>Very handy and very ridiculous to categorize as &#8220;bad design&#8221;<br />
New to Mac and iPhone.<br />
This is what I would have expected the foundation to have</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amin Negm-Awad</title>
		<link>http://pegolon.wordpress.com/2008/11/03/quick-iphone-dev-tip-creating-a-uicolor-with-just-one-rgb-value/#comment-124</link>
		<dc:creator>Amin Negm-Awad</dc:creator>
		<pubDate>Wed, 19 Nov 2008 10:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://pegolon.wordpress.com/?p=37#comment-124</guid>
		<description>I don&#039;t use it and I feel free to comment it. And I think, that it is a good idea to comment it. Otherwise readers of this article will think, that this code is good design.

1. This floating point values are not strange. Using the rgb color system you mix up components. It is a very usual way to specify a compnents by a range between 0 and 1. And as I said: It is without a context, especially a context as &quot;typically color encoding on a devie developed in the early 2000&#039;s&quot;

In contrast to this a 24-bit expression (any integer range) of the components are related to a specific context (in this case: usual encoding of colors on a computer). if a device supports a better color resolutions than a random integer range, you will not get it.

2. The correct representation of a value does not depend on the fact whether you are developing a framework or not. You represent the value correct or not. 

3. We have three floating point computations for that and one method dispatch. This is no problem. However this computation does not apologize poor design. If it is too slow, you have to caluclate it your own. 

Simply try this:
int colorIndex =0;
while( colorTable[colorIndex] ) {
   UIColor shade = UIColorFromRGB( color[colorIndex++] );
   // …
}

Result: Probably a crashing app, definetly not the intended result</description>
		<content:encoded><![CDATA[<p>I don&#8217;t use it and I feel free to comment it. And I think, that it is a good idea to comment it. Otherwise readers of this article will think, that this code is good design.</p>
<p>1. This floating point values are not strange. Using the rgb color system you mix up components. It is a very usual way to specify a compnents by a range between 0 and 1. And as I said: It is without a context, especially a context as &#8220;typically color encoding on a devie developed in the early 2000&#8217;s&#8221;</p>
<p>In contrast to this a 24-bit expression (any integer range) of the components are related to a specific context (in this case: usual encoding of colors on a computer). if a device supports a better color resolutions than a random integer range, you will not get it.</p>
<p>2. The correct representation of a value does not depend on the fact whether you are developing a framework or not. You represent the value correct or not. </p>
<p>3. We have three floating point computations for that and one method dispatch. This is no problem. However this computation does not apologize poor design. If it is too slow, you have to caluclate it your own. </p>
<p>Simply try this:<br />
int colorIndex =0;<br />
while( colorTable[colorIndex] ) {<br />
   UIColor shade = UIColorFromRGB( color[colorIndex++] );<br />
   // …<br />
}</p>
<p>Result: Probably a crashing app, definetly not the intended result</p>
]]></content:encoded>
	</item>
</channel>
</rss>
