<?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>iphone swing</title>
	<atom:link href="http://iphoninandouts.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://iphoninandouts.wordpress.com</link>
	<description>About Iphone programming &#38; design</description>
	<lastBuildDate>Tue, 02 Mar 2010 19:59:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='iphoninandouts.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>iphone swing</title>
		<link>http://iphoninandouts.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://iphoninandouts.wordpress.com/osd.xml" title="iphone swing" />
	<atom:link rel='hub' href='http://iphoninandouts.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Concept &gt; Chamaleonfeeder</title>
		<link>http://iphoninandouts.wordpress.com/2010/03/02/concept-chamaleonfeeder/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/03/02/concept-chamaleonfeeder/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 19:59:45 +0000</pubDate>
		<dc:creator>XXX</dc:creator>
				<category><![CDATA[iphone concepts]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=148</guid>
		<description><![CDATA[So, this is my concept: There&#8217;s a chameleon, and he&#8217;s hungry. Your job is to feed him. There&#8217;s a little complication though: he only eats flies that have the same color as his skin. And as we all know a chameleon changes color. First you have to fix the chameleons gaze on a fly, you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=148&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, this is my concept:</p>
<p>There&#8217;s a chameleon, and he&#8217;s hungry. Your job is to feed him. There&#8217;s a little complication though: he only eats flies that have the same color as his skin. And as we all know a chameleon changes color.</p>
<p>First you have to fix the chameleons gaze on a fly, you do this by rotating the eyes until they both look in the direction of the fly. Then, you make it shoot out its tongue by tapping. Sounds simple, right? The problem is that the chameleon will change color, so you have to lock on a fly and eat it <em>before</em> the chameleons skin color changes and doesn&#8217;t match the fly anymore.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/148/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/148/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/148/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=148&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/03/02/concept-chamaleonfeeder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7826547ca399ba35a6513149130f77c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">profcavia</media:title>
		</media:content>
	</item>
		<item>
		<title>Presentation app</title>
		<link>http://iphoninandouts.wordpress.com/2010/03/02/presentation-app/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/03/02/presentation-app/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 14:52:27 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone concepts]]></category>
		<category><![CDATA[iphone design]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=144</guid>
		<description><![CDATA[The third afternoon&#8230;. in the form of an app&#8230;..<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=144&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.contrechoc.com/iphone/iphoneCourse3a.zip">The third afternoon</a>&#8230;.</p>
<p>in the form of an app&#8230;..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=144&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/03/02/presentation-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>
	</item>
		<item>
		<title>Drawing circles and lines</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/28/drawing-circles-and-lines/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/28/drawing-circles-and-lines/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 19:02:18 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone coding]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=122</guid>
		<description><![CDATA[Putting images on the screen is easy with UIImage * myImage = [UIImage imageNamed: @"justAnImage.jpg"]; UIImageView* myImageView = [[UIImageView alloc] initWithImage: myImage]; Drawing lines from code is a bit different. Although it is a bit like JAVA. When creating an UIImageView you get a method for free: - (void)drawRect:(CGRect)rect and this method draws the contents [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=122&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Putting images on the screen is easy with<br />
UIImage * myImage = [UIImage imageNamed: @"justAnImage.jpg"];<br />
UIImageView* myImageView = [[UIImageView alloc] initWithImage: myImage];</p>
<p>Drawing lines from code is a bit different. Although it is a bit like JAVA.<br />
When creating an UIImageView you get a method for free:<br />
<strong>- (void)drawRect:(CGRect)rect </strong></p>
<p>and this method draws the contents the view.<br />
You draw in a CGContext, we have already seen CGPoint, CGPointMake etc.</p>
<p>(Strange is the function format: suddenly &#8220;normal&#8221;: CGPointMake ( xFloat, yFloat); &#8212;no &#8220;:&#8221; to be seen&#8230;.)</p>
<p>The drawing is updated by:<br />
<strong>[self setNeedsDisplay];</strong><br />
in the code, after you either erase or add drawing shapes.<br />
This is for removing what was drawn:<br />
<strong>-(void) removeLines {<br />
CGRect elementSymbolRectangle = CGRectMake(0,0,320,480);<br />
CGContextClearRect ( context, elementSymbolRectangle );<br />
[self setNeedsDisplay];<br />
}</strong></p>
<p>To draw lines, first set some parameters like linewidth and color: (All CG functions)<br />
<strong> CGContextSetRGBStrokeColor (context, .9,  .9,  .5,  .9);<br />
CGContextSetLineWidth(context, 2.0);</strong><br />
Then make an CGPointArray:<br />
CGPoint lineArray[2];<br />
And put your two CGPoints in the array:<br />
<strong> lineArray[0]  = point1;<br />
lineArray[1]  = point2;</strong><br />
Then to draw you need:<br />
<strong> CGContextAddLines ( context, lineArray, 2 );<br />
CGContextStrokePath(context);</strong></p>
<p>A bit of a problem is this <strong>context</strong><br />
It has to be configured at the right moment in the <strong>drawRect</strong>, and it has to be a property of the UIView.</p>
<p>Better see this in action:</p>
<p><a href="http://www.contrechoc.com/iphone/Cube-Dodecahedron.zip">Example of a dodecahderon and a cube</a> which can be rotated using touch.</p>
<p>I added the circles to avoid the double possibility of rotating, due to the absence of any form of perspective.</p>
<p>Of course in OpenGL this is all much simpler. And more complex. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><img class="aligncenter" src="http://www.contrechoc.com/iphone/dodeca.jpg" alt="" width="320" height="462" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=122&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/28/drawing-circles-and-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>

		<media:content url="http://www.contrechoc.com/iphone/dodeca.jpg" medium="image" />
	</item>
		<item>
		<title>FileIO from the app&#8217;s sandbox</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/26/fileio-from-the-apps-sandbox/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/26/fileio-from-the-apps-sandbox/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 15:21:20 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone coding]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=135</guid>
		<description><![CDATA[When you want the app to store data, for instance the players name, the score etc and have it available the next time the player goes on you have to store things in the app&#8217;s sandbox. Somehow, this is a bit complicated. I have divided the FILEIO files in two stages: The Filio for basics [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=135&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When you want the app to store data, for instance the players name, the score etc and have it available the next time the player goes on you have to store things in the app&#8217;s sandbox.</p>
<p>Somehow, this is a bit complicated.</p>
<p>I have divided the FILEIO files in two stages: The Filio for basics like</p>
<ul>
<li> clearCache (clears all files)</li>
<li> getDirectory (give the names of the existing files)</li>
<li> get an file</li>
</ul>
<p>then I have a header and source file for converting this stuff into properties of my objects and the other way around, getting my properties in a format which is acceptable for fileio.</p>
<p>You have to realize that for instances arrays written to the cache can contain only objects like NSSTring, and NSNumber. More complex, homemade objects cannot be stored in an NSArray for writing to file.Actually you write a NSString to memory, and what you get out, also is a NSString. These NSStrings are then converted to arrays of NSNumbers (if needed).</p>
<p><a href="http://www.contrechoc.com/iphone/SaveTestTwoFiles.zip">This is an example </a>where you can see the directory and have a few buttons for writing and reading two files to the sandbox of an app. The image in the background is from Grungegolf!</p>
<p>write a file</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=135&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/26/fileio-from-the-apps-sandbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>
	</item>
		<item>
		<title>Reading a textfile</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/26/reading-a-textfile/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/26/reading-a-textfile/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 15:00:16 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone coding]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=127</guid>
		<description><![CDATA[Having a text for the app, for instance the help, the best you can do is making a text file adding this to your project and reading the textfile using code. This way, a mispelled word is easily replaced without disrupting the code and the textfile is also much more readable then hard coded text [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=127&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Having a text for the app, for instance the help, the best you can do is making a text file adding this to your project and reading the textfile using code. This way, a mispelled word is easily replaced without disrupting the code and the textfile is also much more readable then hard coded text in code.</p>
<p>This is how you read the textfile:</p>
<p>First get at your file:<br />
<code><strong>NSString *pathNameString = @"points";<br />
NSString *filePathString = [[NSBundle mainBundle] pathForResource:pathNameString ofType:@"txt"];</strong></code><br />
Then look if there is no mistake and read:<br />
<code><strong>if (filePathString) {<br />
NSString *myText = [NSString stringWithContentsOfFile:filePathString];<br />
if (myText) {<br />
NSArray *pointData = [myText componentsSeparatedByString:@","];</strong></code><br />
For numbers I use the separator &#8220;,&#8221; but anything can be used.<br />
Now the pointData are NSStrings, so we have to get the values:<br />
<code><strong>int i;<br />
for (i=0; i&lt; pointData.count ; i+=3 ){<br />
float xData =  (float)[[pointData objectAtIndex:i] floatValue ];</strong></code><br />
or intValue.<br />
For a list of image names, the whitespaces must be cleaned:<br />
<code><strong>NSString *imageSmallPage = [textImageObjectData objectAtIndex:i];<br />
imageSmallPage = [imageSmallPage stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];</strong></code></p>
<p>Sometimes, for visibility you need returns (&#8220;\n&#8221;) in your textfiles, to get these out I used:</p>
<p><code><strong>NSString * firstBounceString = [(NSString *)[pointArrayData objectAtIndex:i] stringByReplacingOccurrencesOfString:@"\n" withString:@"" ];<br />
int bouncePointX = (int)[firstBounceString intValue ];</strong></code></p>
<p>All these small details handling data have to be taken care of, otherwise you&#8217;ll get in some trouble later on&#8230;</p>
<p>Example code: again the dodecahedron, where I have a list of lines of the dodecahedron in a textfile, the points being found by algorithm.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=127&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/26/reading-a-textfile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>
	</item>
		<item>
		<title>Sound in Xcode (short sound)</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/26/sound-in-xcode/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/26/sound-in-xcode/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 14:27:16 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone coding]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=119</guid>
		<description><![CDATA[Sound seems to be easy, just copy from the examples: Create a soundID AudioServicesCreateSystemSoundID (soundFileURLRef, soundID); and play the sound: AudioServicesPlaySystemSound (soundID); and wav and caf and aif is allowed, what could be more easy? Until you hear your sound played! If it played at all. What you forget (at least I did) is this [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=119&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sound seems to be easy, just copy from the examples:<br />
Create a soundID<br />
<code><strong>AudioServicesCreateSystemSoundID (soundFileURLRef, soundID);</strong></code><br />
and play the sound:<br />
<code><strong>AudioServicesPlaySystemSound (soundID);</strong></code><br />
and wav and caf and aif is allowed, what could be more easy?</p>
<p>Until you hear your sound played! If it played at all. What you forget (at least I did) is this line:<br />
<strong>The audio data in the file must be in PCM or IMA/ADPCM (IMA4) format.</strong><br />
What can be that stuff????<br />
It took me a while to find out how to do that:<br />
In the terminal window, find your soundfile and do:<br />
macbook: contrechoc$ afconvert -f caff -d ima4 trill.wav<br />
only this reformatting will make your soun play well.<br />
But there is more:<br />
The above lines of code don&#8217;t show this little detail:<br />
what is a soundID? Well:<br />
<code><strong>SystemSoundID	soundID;</strong></code><br />
You make it like this:<br />
<code><strong>mainBundle = CFBundleGetMainBundle ();<br />
soundFileURLRef  =	CFBundleCopyResourceURL (mainBundle, CFSTR ("mySound"), CFSTR ("caf"),NULL );</strong></code><br />
But wait a minute: I know of NSString, but what is all this: CFSTR ???<br />
And why is there no @ in front??<br />
Ok, now you are in the apple jungle: CFSTR comes from other earlier Xcode environments, the MACOS etc&#8230;.<br />
Later on came NSString&#8230;.. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
You have to cast this CFSTR parameter if you are carrying an NSString, which is what you want because you want to make a nice object:<br />
(CFStringRef) soundName is of type CFSTR if soundName is of type NSString:</p>
<p>Knowing this you can make a nice drumpad app, with buttons carrying images of snares and base drums and sounds attached on the &#8220;action&#8221; method of these views.</p>
<p><a href="http://www.contrechoc.com/iphone/ButtonSounds.zip">Example with sounds attached to a button</a>. The buttons are generated in a grid, and stored in an NSArray.</p>
<p><img class="aligncenter" src="http://www.contrechoc.com/iphone/soundPad.jpg" alt="" width="322" height="458" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=119&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/26/sound-in-xcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>

		<media:content url="http://www.contrechoc.com/iphone/soundPad.jpg" medium="image" />
	</item>
		<item>
		<title>App-o-mator</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/17/app-o-mator/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/17/app-o-mator/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:31:47 +0000</pubDate>
		<dc:creator>XXX</dc:creator>
				<category><![CDATA[iphone coding]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=115</guid>
		<description><![CDATA[The appOmator is an application for making iPhone apps. www.appomator.com<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=115&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The appOmator is an application for making iPhone apps.</p>
<p><a href="http://www.appomator.com/">www.appomator.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=115&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/17/app-o-mator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7826547ca399ba35a6513149130f77c8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">profcavia</media:title>
		</media:content>
	</item>
		<item>
		<title>Concept example: Bio Shoot</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/16/concept-example-bio-shoot/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/16/concept-example-bio-shoot/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 13:34:33 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone concepts]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=105</guid>
		<description><![CDATA[Using a photoshop file to present the start of a concept. The layers in this file make up for the different levels in a shooter game, at the moment only sparse imagery is entered. We work in the template of a shooter. I want to use the shooter to make choices which can be altered [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=105&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using <a href="http://www.contrechoc.com/iphone/concept.psd">a photoshop file to present the start of a concept</a>. The layers in this file make up for the different levels in a shooter game, at the moment only sparse imagery is entered.</p>
<p>We work in the template of a shooter.</p>
<p>I want to use the shooter to make choices which can be altered by a little bit of chance.</p>
<p>My idea was to let people create their biography in two minutes on a Iphone, even before the shooter came in. But the shooters presents a unique opportunity to give this app a little bit of a swing. At the same time the aggressiveness of the shooter is turned around. No more killing, but constructing your life!</p>
<p>Starting with a babytype, your next heroic deed is choosing an email address, a way to socialize, a mobile phone type and you and up choosing for a kind of car. This particular choice path makes your personality!</p>
<p>The choices are gender neutral.</p>
<p>Of course you have to shoot your favorite between different options and because of the nature of the shooter your fate can be altered. Little devils like to prevent you getting what you want.</p>
<p>In the end you have a list of choices and misses which are your life!</p>
<p>At the same time you have a list of tags which can be formed in new social groups etc etc etc&#8230;.</p>
<p>A lot of extra features, an be added if the structure works ok, such as choosing a nickname, relate to other players with the same choices, &#8230;</p>
<p>Needed for the design are a nice splash, backgrounds for the different levels, better images, devil images.</p>
<p>Neede for the programming is a good shooter base program.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=105&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/16/concept-example-bio-shoot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>
	</item>
		<item>
		<title>Four Hello World Examples</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/16/four-hello-world-examples/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/16/four-hello-world-examples/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 13:04:37 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone coding]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=101</guid>
		<description><![CDATA[To start do it yourself, we have four basic Hello World examples. Hello World in the NSLog, to see the debugger in action Hello World in an ImageView, to see a first image thrown in an ImageView Hello World in a Text box, to see the UITextView, a textfield has a large number of properties [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=101&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To start do it yourself, we have four basic <a href="http://www.contrechoc.com/iphone/FourTimesHelloWorld.zip">Hello World examples</a>.</p>
<p>Hello World in the NSLog, to see the debugger in action</p>
<p>Hello World in an ImageView, to see a first image thrown in an ImageView</p>
<p>Hello World in a Text box, to see the UITextView, a textfield has a large number of properties and functions, we will look at this later on.</p>
<p>This is the first helloworld with a widget, the name of which can be found in HelloWorld3-Info.plist</p>
<p>Hello World in a ULabel:not editable piece of text (not user editable), it is editable from code.</p>
<p>What are the differences in UITextView etc etc etc???<br />
UILabel is not editable<br />
UITextField is a UIControl subclass, with its own control events already defined. You need to declare a delegate for the UITextField that will follow the UITextFieldDelegate protocol<br />
UITextView like a UITextField, except that it allows users to enter many lines of text<br />
UISearchBar is something else, but in principle the same, not a UIControl object</p>
<p>see this text: <a href="www.weckstrom.com/asdf/ipod_pdf/Iphone.InAction.pdf "><cite>www.weckstrom.com/asdf/ipod_pdf/Iphone.InAction.pdf </cite></a></p>
<p>After these starting example we go on with several screens, using the central viewController to start subviewControllers, we have a structure of three, splashView, gameView, and gameOverView.</p>
<p><a href="http://www.contrechoc.com/iphone/exampleTemplates.zip">exampleTemplates</a> *</p>
<p>After this, you could try the full push puzzle game: (currently to be found in the appstore.)</p>
<p><a href="http://www.contrechoc.com/iphone/push.zip">pushPuzzle *<br />
</a></p>
<p>and also the starting (first tries) of the <a href="http://www.contrechoc.com/iphone/Shooter2.zip">shooters</a>. *</p>
<p>*It could be that the version of Iphone  SDK does not fit these examples, then double click on the project, upper icon in project view, and choose Build, and make the debug mode like this image:</p>
<p>That is reset the Base SDK to Iphone Device 2.2.1 (second bold line from the top Architecture)</p>
<p><a href="http://iphoninandouts.files.wordpress.com/2010/02/picture-1.png"><img class="alignnone size-full wp-image-110" title="Picture 1" src="http://iphoninandouts.files.wordpress.com/2010/02/picture-1.png?w=450&#038;h=370" alt="" width="450" height="370" /></a></p>
<p>Assignments to get used to the views:</p>
<p>make a presentation app for something: your dog, your cat, your self your laptop. Use images from for instance Google images, use texts. Make some different screens, use touch to advance. Make the touch to display an image. The screens should contain more than one image and at a minimum a UILable or TextView. Experiment with colors, transparencies and fonts.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=101&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/16/four-hello-world-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>

		<media:content url="http://iphoninandouts.files.wordpress.com/2010/02/picture-1.png" medium="image">
			<media:title type="html">Picture 1</media:title>
		</media:content>
	</item>
		<item>
		<title>About designing apple specific icons or widgets</title>
		<link>http://iphoninandouts.wordpress.com/2010/02/13/about-designing-apple-specific-icons/</link>
		<comments>http://iphoninandouts.wordpress.com/2010/02/13/about-designing-apple-specific-icons/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 16:49:22 +0000</pubDate>
		<dc:creator>contrechoc</dc:creator>
				<category><![CDATA[iphone design]]></category>

		<guid isPermaLink="false">http://iphoninandouts.wordpress.com/?p=83</guid>
		<description><![CDATA[For making the special flashy icons, i found this link(s): http://cocoawithlove.com/2009/11/creating-iphone-and-mac-icons-using.html http://cocoawithlove.com/2009/11/creating-iphone-and-mac-icons-using_06.html You have to remember that the icon for the game on the menu pages of the Iphone (called a widget) has to be 57 x 57 pixels. Shine will be added unless it is stated that no shine must be added. Here another [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=83&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For making the special flashy icons, i found this link(s):<br />
<a href="http://cocoawithlove.com/2009/11/creating-iphone-and-mac-icons-using.html">http://cocoawithlove.com/2009/11/creating-iphone-and-mac-icons-using.html </a><br />
<a href="http://cocoawithlove.com/2009/11/creating-iphone-and-mac-icons-using_06.html">http://cocoawithlove.com/2009/11/creating-iphone-and-mac-icons-using_06.html</a></p>
<p>You have to remember that the icon for the game on the menu pages of the Iphone (called a widget) has to be 57 x 57 pixels. Shine will be added unless it is stated that no shine must be added.<br />
Here another tutorial on this widget making:<br />
<a href="http://tutorials20.com/design/design-your-iphone-widgets/">http://tutorials20.com/design/design-your-iphone-widgets/</a></p>
<p>See the difference between making it (400%) and the 100% size:</p>
<p><a href="http://iphoninandouts.files.wordpress.com/2010/02/image-6.jpg"><img class="alignnone size-full wp-image-96" title="Image 6" src="http://iphoninandouts.files.wordpress.com/2010/02/image-6.jpg?w=450" alt=""   /></a> <a href="http://iphoninandouts.files.wordpress.com/2010/02/widgetbioshoot11.jpg"><img class="alignnone size-full wp-image-98" title="widgetBIOSHOOT1" src="http://iphoninandouts.files.wordpress.com/2010/02/widgetbioshoot11.jpg?w=450" alt=""   /></a></p>
<p>But there is more inspiration: <a href="http://naldzgraphics.net/tutorials/40-photoshop-tutorials-for-creating-gadget-designs/">http://naldzgraphics.net/tutorials/40-photoshop-tutorials-for-creating-gadget-designs/</a></p>
<p>Really to get the flashy shiny diamond like widgets is a bit of photoshop acrobatics!</p>
<p>It is playing with the blending options, certainly the bevel, but also the stroke and taking some of the special effects in stroke like dissolving which come on top of the bevelled image in a layer underneath.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iphoninandouts.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iphoninandouts.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iphoninandouts.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iphoninandouts.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iphoninandouts.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iphoninandouts.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iphoninandouts.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iphoninandouts.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iphoninandouts.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iphoninandouts.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iphoninandouts.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iphoninandouts.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iphoninandouts.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iphoninandouts.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iphoninandouts.wordpress.com&amp;blog=11839429&amp;post=83&amp;subd=iphoninandouts&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iphoninandouts.wordpress.com/2010/02/13/about-designing-apple-specific-icons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/03e4efa8a397efd59f69ea79705ce144?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">contrechoc</media:title>
		</media:content>

		<media:content url="http://iphoninandouts.files.wordpress.com/2010/02/image-6.jpg" medium="image">
			<media:title type="html">Image 6</media:title>
		</media:content>

		<media:content url="http://iphoninandouts.files.wordpress.com/2010/02/widgetbioshoot11.jpg" medium="image">
			<media:title type="html">widgetBIOSHOOT1</media:title>
		</media:content>
	</item>
	</channel>
</rss>
