<?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>The Official Joroto Blog &#187; SDK</title>
	<atom:link href="http://www.joroto.com/blog/tag/sdk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joroto.com/blog</link>
	<description>From the people at Joroto, Inc.</description>
	<lastBuildDate>Thu, 20 Oct 2011 21:10:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to find your resources and how to generally find the directory layout</title>
		<link>http://www.joroto.com/blog/2011/08/14/how-to-find-your-resources-and-how-to-generally-find-the-directory-layout/</link>
		<comments>http://www.joroto.com/blog/2011/08/14/how-to-find-your-resources-and-how-to-generally-find-the-directory-layout/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 03:24:41 +0000</pubDate>
		<dc:creator>Tom CTO</dc:creator>
				<category><![CDATA[iPod and Apple Platform]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[compiled]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iPlatform]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[resource]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.joroto.com/blog/?p=612</guid>
		<description><![CDATA[To find the main download directory for when you are receiving files, put this snippet of code in a test project or your main project at the point of opening: NSArray *pathsForDownloadedFiles = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *pathMain = [pathsForDownloadedFiles &#8230; <a href="http://www.joroto.com/blog/2011/08/14/how-to-find-your-resources-and-how-to-generally-find-the-directory-layout/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To find the main download directory for when you are receiving files, put this snippet of code in a test project or your main project at the point of opening:</p>
<pre> NSArray *pathsForDownloadedFiles = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
 NSString *pathMain = [pathsForDownloadedFiles objectAtIndex:0];
 NSLog(@"main download directory is [%s]", [pathMain UTF8String]);</pre>
<p>The first line lets you allow Apple to put the application download directory anywhere it likes. It will also be able to change it at will, without breaking your program.<br />
The second line means that there is only one directory you need to access and its the first one. Remember in C arrays are zero based which means the first element of the array is at index number zero not at index number one.<br />
NSLog will let you run the app in the simulator OR on your device and send logging information back to the debug console in XCode. Nice and integrated.</p>
<p>An alternative method:</p>
<pre> NSString *mainPath = [self getDataPath];</pre>
<p>Uhhhhh yeah a bit shorter. Its not deprecated from what I see so one can use this method also.</p>
<p>Finally lets see where our resource is. Again, if you use this method, then XCode will be able to re-layout the resource directory structure anyway it wants without breaking your program. You KNOW they&#8217;re going to do this someday and they won&#8217;t tell you until its been done. So lets Program Defensively. Just like you drive defensively.<br />
To find a specific resource that was compiled into your application:</p>
<pre> NSString *resourcePath = [[NSBundle mainBundle] pathForResource:@"mission1" ofType:@"jmf"];
 NSLog(@"Path for mission file is [%s]", [resourcePath UTF8String]);</pre>
<p>The AT (@) sign is the NSString constructor without declaring an NSString. In case you&#8217;re wondering.</p>
<p>Good Luck and God&#8217;s Speed to ya mates.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.joroto.com%2Fblog%2F2011%2F08%2F14%2Fhow-to-find-your-resources-and-how-to-generally-find-the-directory-layout%2F&amp;title=How%20to%20find%20your%20resources%20and%20how%20to%20generally%20find%20the%20directory%20layout" id="wpa2a_2"><img src="http://www.joroto.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.joroto.com/blog/2011/08/14/how-to-find-your-resources-and-how-to-generally-find-the-directory-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NO JOY. An OS 3.0 upgrade story</title>
		<link>http://www.joroto.com/blog/2009/09/05/no-joy-an-os-3-0-upgrade-story/</link>
		<comments>http://www.joroto.com/blog/2009/09/05/no-joy-an-os-3-0-upgrade-story/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 02:05:31 +0000</pubDate>
		<dc:creator>Tom CTO</dc:creator>
				<category><![CDATA[iPod and Apple Platform]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[OS 3.0]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.joroto.com/blog/2009/09/05/no-joy-an-os-3-0-upgrade-story/</guid>
		<description><![CDATA[Went to the iTunes store to upgrade one of my iPods to the OS 3.0 SDK to see if we can monetize the crap out of it. Hey, I&#8217;ve BEEN BUSY, so shutup. Anyway, No joy. An UNKNOWN ERROR occurred &#8230; <a href="http://www.joroto.com/blog/2009/09/05/no-joy-an-os-3-0-upgrade-story/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Went to the iTunes store to upgrade one of my iPods to the OS 3.0 SDK to see if we can monetize the crap out of it. Hey, I&#8217;ve BEEN BUSY, so shutup.<br />
Anyway, No joy. An UNKNOWN ERROR occurred on my transaction.<br />
I will report back on this when I solve Apple&#8217;s problem (again).<br />
Update and FIX:<br />
The error was &#8220;An Unknown Error Occurred (1004)&#8221;. OH how precious that is. Apple must have hired a couple of hundred Microsoft Programming Wizards for that one. Yeah 100 mediocre programmers. Idiots.<br />
OK here is what it is telling you: </p>
<ol>
Go into your iTunes (mine is on the Mac).<br />
Choose Store from the Menu.<br />
View My Account.<br />
Put the credit card security code into the app.<br />
Close that pane.<br />
Click on your iPod device.<br />
Choose update.<br />
Click on Buy now.<br />
WHOA! It works now. AMAZING. Stupid. Imbecile. Mediocre programmers need to be shot. Where is Adolf Eichmann when we need him.<br />
You&#8217;re done baby. Wait the 20 minutes to download this puppy.<br />
Remember to BACKUP your iPlatform before upgrading dude and dudettes.
</ol>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.joroto.com%2Fblog%2F2009%2F09%2F05%2Fno-joy-an-os-3-0-upgrade-story%2F&amp;title=NO%20JOY.%20An%20OS%203.0%20upgrade%20story" id="wpa2a_4"><img src="http://www.joroto.com/blog/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.joroto.com/blog/2009/09/05/no-joy-an-os-3-0-upgrade-story/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>HOLY CRAP BATMAN SNOW LEOPARD&#8217;S GOT ME</title>
		<link>http://www.joroto.com/blog/2009/09/05/holy-crap-batman-snow-leopards-got-me/</link>
		<comments>http://www.joroto.com/blog/2009/09/05/holy-crap-batman-snow-leopards-got-me/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 02:03:31 +0000</pubDate>
		<dc:creator>Tom CTO</dc:creator>
				<category><![CDATA[iPod and Apple Platform]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[CRAP]]></category>
		<category><![CDATA[OS X upgrade]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.joroto.com/blog/2009/09/05/holy-crap-batman-snow-leopards-got-me/</guid>
		<description><![CDATA[As the "Ultimate End-User" I could remark...but I upgraded the blog theme and it wiped our customizations...Yea it was in the manual.

What the HECK are these programmers thinking?  Or unthinking?

NOTE: Tom's swearing was SELF removed, twas not I.  Thank you for saving me the effort Mr. Know It All.

JB <a href="http://www.joroto.com/blog/2009/09/05/holy-crap-batman-snow-leopards-got-me/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Face (our undead President) close your eyes and skip this rant.<br />
Ok folks, spent the whole $25 in cheeseballs on the OS X upgrade.<br />
Those *beep* *beep* *BEEPITY* *beeps* (edited by Face) at Apple have completly wiped my XCode links to the SDKs. NOTHING BUILDS NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />
HOLY **** Batman!<br />
I&#8217;ll update here about this crap. GREAT! Like we need MORE WORK. Of course WE&#8217;LL be blamed for this. Those BEEEEEEeeeeeeeeeeeeeeeeeeeeep (edited by Face).<br />
-T-<br />
Update:<br />
Ok my fault, when I upgraded, I should have put XCode 3.2 into A NEW PLACE!!! otherwise it &#8220;upgrades&#8221; your existing install (assuming you used the defaults) by erasing all your SDKs! How intuitive. Yeah if I RTFM. Ok so the way out is to download the OS 3.0 SDK which &#8220;doesn&#8217;t have all the 2.x SDKs&#8221;. Hmmm Let&#8217;s see nope. No more ranting. By this time you want answers.<br />
I&#8217;m doing that right now and its taking 20 minutes for 404MB.<br />
The original solution is to install the new 3.2 Xcode into A NEW PLACE and DO NOT UPGRADE the existing installation. Well they at least got that part correct.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joroto.com/blog/2009/09/05/holy-crap-batman-snow-leopards-got-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

