<?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/"
	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>Sean Lindsay On iPhone</title>
	<atom:link href="http://seanlindsay.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanlindsay.wordpress.com</link>
	<description>Experiments in iPhone Development</description>
	<lastBuildDate>Tue, 14 Apr 2009 04:39:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='seanlindsay.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6ce07f45b4cfbde3138944d0a7b83b72?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Sean Lindsay On iPhone</title>
		<link>http://seanlindsay.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://seanlindsay.wordpress.com/osd.xml" title="Sean Lindsay On iPhone" />
	<atom:link rel='hub' href='http://seanlindsay.wordpress.com/?pushpress=hub'/>
		<item>
		<title>VBias</title>
		<link>http://seanlindsay.wordpress.com/2009/04/14/vbias/</link>
		<comments>http://seanlindsay.wordpress.com/2009/04/14/vbias/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 04:38:14 +0000</pubDate>
		<dc:creator>Sean Lindsay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://seanlindsay.wordpress.com/?p=360</guid>
		<description><![CDATA[VBias, n. the expectation that programming languages and frameworks should all have visual development environments at least equivalent to Visual Basic a resistance to learning a programming language because it doesn&#8217;t appear to be as easy to use as Visual Basic<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=seanlindsay.wordpress.com&amp;blog=1131528&amp;post=360&amp;subd=seanlindsay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>VBias, n.</p>
<ol>
<li>the expectation that programming languages and frameworks should all have visual development environments at least equivalent to Visual Basic</li>
<li>a resistance to learning a programming language because it doesn&#8217;t appear to be as easy to use as Visual Basic</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/seanlindsay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/seanlindsay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/seanlindsay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/seanlindsay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/seanlindsay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/seanlindsay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/seanlindsay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/seanlindsay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/seanlindsay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/seanlindsay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/seanlindsay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/seanlindsay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/seanlindsay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/seanlindsay.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=seanlindsay.wordpress.com&amp;blog=1131528&amp;post=360&amp;subd=seanlindsay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://seanlindsay.wordpress.com/2009/04/14/vbias/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ade7875f1a401f785d9f37e62f605d20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">seanlindsay</media:title>
		</media:content>
	</item>
		<item>
		<title>A little background &#8230;</title>
		<link>http://seanlindsay.wordpress.com/2009/04/14/a-little-background/</link>
		<comments>http://seanlindsay.wordpress.com/2009/04/14/a-little-background/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 04:23:22 +0000</pubDate>
		<dc:creator>Sean Lindsay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://seanlindsay.wordpress.com/?p=357</guid>
		<description><![CDATA[As a first toe-dip in coding, I wanted to create a simple app with a couple of buttons, labels, a nice background, etc. Nothing too fancy, or even functional, just a layout experiment. Turns out the &#8220;nice background&#8221; is more of a PITA than it should be. Things I&#8217;ve (so far) found I/you can&#8217;t (easily) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=seanlindsay.wordpress.com&amp;blog=1131528&amp;post=357&amp;subd=seanlindsay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As a first toe-dip in coding, I wanted to create a simple app with a couple of buttons, labels, a nice background, etc. Nothing too fancy, or even functional, just a layout experiment.</p>
<p>Turns out the &#8220;nice background&#8221; is more of a PITA than it should be. Things I&#8217;ve (so far) found I/you can&#8217;t (easily) do:</p>
<ul>
<li>Interface Builder doesn&#8217;t allow you to select an image as the background of a view &#8212; just a flat color, with transparency if you&#8217;ve got something interesting underneath it</li>
<li>You can drag an Image View to fill the available space, but you can only define a loaded image file&#8217;s position within the Image View, or stretch it to fit &#8212; you can&#8217;t set it to tile (not in IB, anyway &#8230;)</li>
<li>Searching for &#8220;tiled image&#8221; or &#8220;tiled background&#8221; in the Developer Reference Library yields <a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://developer.apple.com/iphone/library/codinghowtos/GraphicsAndAnimation/#2D-DRAW_A_TILED_IMAGE">cursory references</a> to using <code><a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://developer.apple.com/documentation/graphicsimaging/reference/CGContext/Reference/reference.html#//apple_ref/c/func/CGContextDrawTiledImage">CGContextDrawTiledImage</a></code>, or &#8220;use <code>UIKit</code> to create a <code>UIColor</code> object from a <code>UIImage</code> object using the method <code><a onclick="return mugicPopWin(this,event);" oncontextmenu="mugicRightClick(this);" href="http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIColor_Class/Reference/Reference.html#//apple_ref/occ/clm/UIColor/colorWithPatternImage:">colorWithPatternImage</a></code>&#8220;. (Apparently a UIColor can be a PatternImage.) But the documentation isn&#8217;t clear onhow/where you would use this instruction (and I&#8217;m too much of a newbie to intuit the answer).</li>
</ul>
<p>But it&#8217;s actually just a single line of code, added to the -ViewDidLoad callback:</p>
<p><code>-(void)viewDidLoad {<br />
[super viewDidLoad];<br />
self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"imagefilename.png"]];<br />
}</code></p>
<p>(Thanks to <a href="http://stackoverflow.com/questions/224503/repeating-background-image-in-native-iphone-app/224513#224513">Frank Schmitt</a> at <a href="http://stackoverflow.com/">Stack Overflow</a>.)</p>
<p>So the solution is easy to implement. But, since it&#8217;s in code, your nice background doesn&#8217;t show up in Interface Builder &#8212; you only see it at runtime. This makes it harder to design interface elements to contrast with the background image, and if you&#8217;re trying to align things to match the background, well, get used to clicking Build and Go.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/seanlindsay.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/seanlindsay.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/seanlindsay.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/seanlindsay.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/seanlindsay.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/seanlindsay.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/seanlindsay.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/seanlindsay.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/seanlindsay.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/seanlindsay.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/seanlindsay.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/seanlindsay.wordpress.com/357/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/seanlindsay.wordpress.com/357/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/seanlindsay.wordpress.com/357/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=seanlindsay.wordpress.com&amp;blog=1131528&amp;post=357&amp;subd=seanlindsay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://seanlindsay.wordpress.com/2009/04/14/a-little-background/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ade7875f1a401f785d9f37e62f605d20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">seanlindsay</media:title>
		</media:content>
	</item>
		<item>
		<title>Trying to make sense of &#8230;</title>
		<link>http://seanlindsay.wordpress.com/2009/04/10/trying-to-make-sense-of/</link>
		<comments>http://seanlindsay.wordpress.com/2009/04/10/trying-to-make-sense-of/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 07:33:02 +0000</pubDate>
		<dc:creator>Sean Lindsay</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://seanlindsay.wordpress.com/?p=352</guid>
		<description><![CDATA[My name is Sean Lindsay. You probably don&#8217;t know me as the author of 101 Reasons to Stop Writing. I&#8217;m venturing into developing applications for the iPhone. The two things are not related, as far as I know. This blog will contain thoughts about other iPhone apps, the iPhone SDK and the iPhone itself, very [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=seanlindsay.wordpress.com&amp;blog=1131528&amp;post=352&amp;subd=seanlindsay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My name is Sean Lindsay. You probably don&#8217;t know me as the author of <a href="http://101reasonstostopwriting.com">101 Reasons to Stop Writing</a>. I&#8217;m venturing into developing applications for the iPhone. The two things are not related, as far as I know.</p>
<p>This blog will contain thoughts about other iPhone apps, the iPhone SDK and the iPhone itself, very little about fiction writing and probably nothing at all about cats, lol- or otherwise.</p>
<p>If you&#8217;re reading this, you&#8217;re probably mistaken, about something.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/seanlindsay.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/seanlindsay.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/seanlindsay.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/seanlindsay.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/seanlindsay.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/seanlindsay.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/seanlindsay.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/seanlindsay.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/seanlindsay.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/seanlindsay.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/seanlindsay.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/seanlindsay.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/seanlindsay.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/seanlindsay.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=seanlindsay.wordpress.com&amp;blog=1131528&amp;post=352&amp;subd=seanlindsay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://seanlindsay.wordpress.com/2009/04/10/trying-to-make-sense-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ade7875f1a401f785d9f37e62f605d20?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">seanlindsay</media:title>
		</media:content>
	</item>
	</channel>
</rss>
