<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>Robert Payne</title><generator>Tumblr (3.0; @robertjpayne)</generator><link>http://robertjpayne.com/</link><item><title>the understatement: Android Orphans: Visualizing a Sad History of Support</title><description>&lt;a href="http://theunderstatement.com/post/11982112928/android-orphans-visualizing-a-sad-history-of-support"&gt;the understatement: Android Orphans: Visualizing a Sad History of Support&lt;/a&gt;: &lt;p&gt;&lt;a href="http://theunderstatement.com/post/11982112928/android-orphans-visualizing-a-sad-history-of-support"&gt;understatementblog&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The announcement that &lt;a href="http://techcrunch.com/2011/10/26/the-nexus-one-isnt-invited-to-the-ice-cream-sandwich-social/"&gt;Nexus One users won’t be getting upgraded&lt;/a&gt; to Android 4.0 Ice Cream Sandwich led some to &lt;a href="http://www.marco.org/2011/10/26/no-android-4-for-nexus-one"&gt;justifiably question Google’s support of their devices&lt;/a&gt;. I look at it a little differently: Nexus One owners are lucky. I’ve been researching the history of OS updates on Android phones…&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://robertjpayne.com/post/12131947937</link><guid>http://robertjpayne.com/post/12131947937</guid><pubDate>Mon, 31 Oct 2011 10:20:41 +1300</pubDate></item><item><title>Archiving, Unarchiving, and Copying NSManagedObject's</title><description>&lt;p&gt;Core Data is awesome. So awesome I use it in just about every single Cocoa application I write for either Mac OS X or iOS. What makes Core Data so great is that it normally just works. By normally I mean 80% of the time. The other 19% of the time there is a not-so-easy but still simple workaround but still a workaround that doesn&amp;#8217;t take long to implement.&lt;/p&gt;

&lt;p&gt;Then theres the 1% of cases where Core Data is so frustrating it nearly makes probably others and myself want to either run off a cliff, walk in front of a giant truck, rob an Apple store or commit suicide in any other way possible.&lt;/p&gt;

&lt;p&gt;The 1% for me normally comes down to two scenarios. Copying NSManagedObject&amp;#8217;s and putting them on the clipboard for copy/cut/paste sweetness.&lt;/p&gt;

&lt;p&gt;If you&amp;#8217;re in the same boat I have a treat for you today. 6 hours, 2 beers, a little research, a lot of documentation and a bit of programming and testing I created two classes and a category. &lt;strong&gt;NSManagedObjectArchiver&lt;/strong&gt;, &lt;strong&gt;NSManagedObjectUnarchiver&lt;/strong&gt; and a &lt;strong&gt;NSManagedObjectCopying&lt;/strong&gt; category.&lt;/p&gt;

&lt;p&gt;These three classes do exactly what you think. They archive managed objects to NSData, unarchive them from NSData and allow you to copy them. They not only work on NSManagedObject&amp;#8217;s attributes they also support relationships fully ( including circular ones! ) so you can take a single object archive it and restore it later. They&amp;#8217;re also smart though and only archive the object&amp;#8217;s once even if it&amp;#8217;s in multiple places in the object graph.&lt;/p&gt;

&lt;p&gt;I should note these classes are not &amp;#8220;extremely&amp;#8221; tested and thus may have some quirks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/1324319"&gt;View Gist @ github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enjoy,
-Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/12067841202</link><guid>http://robertjpayne.com/post/12067841202</guid><pubDate>Sat, 29 Oct 2011 23:44:48 +1300</pubDate><category>macosx</category><category>objc</category><category>coredata</category><category>cocoa</category><category>ios</category></item><item><title>Using Uncrustify directly in Xcode 4!</title><description>&lt;p&gt;One of the biggest problems I have using 3rd party libraries is that they&amp;#8217;re formatted horribly and there&amp;#8217;s not many great code formatters around that can do Objective-C, C, C++ all in one go. Luckily Uncrustify can but it&amp;#8217;s not exactly the easiest to configure or get running easily.  With the help of a small ruby script and a little time exploring the preferences in Xcode you can set up Uncrustify to scan your project&amp;#8217;s directory for all .h, .m, .c, .mm files and format them at the whim of your keyboard.  You&amp;#8217;ll need two files stored somewhere on your drive. I put them in /usr/local/etc/.&lt;/p&gt;
&lt;h3&gt;Shell Script:&lt;/h3&gt;
&lt;script src="https://gist.github.com/1155120.js?file=Xcode%20Run%20Uncrustify"&gt;&lt;/script&gt;&lt;h3&gt;Uncrustify Config:&lt;/h3&gt;
&lt;script src="https://gist.github.com/1155120.js?file=Uncrustify%20Config"&gt;&lt;/script&gt;&lt;h3&gt;Xcode Behavior:&lt;/h3&gt;
&lt;p&gt;With both of these stored on your hard drive it&amp;#8217;s as easy as going into Xcode&amp;#8217;s preferences and adding a behaviour on the behaviour tab. Here&amp;#8217;s what mine looks like:&lt;/p&gt;
&lt;p style="text-align:center;"&gt;&lt;img src="http://media.tumblr.com/tumblr_lq55na18hI1qjmc8w.png"/&gt;&lt;/p&gt;

&lt;p&gt;Remember to customise the uncrstufiy config as you see fit!&lt;/p&gt;

&lt;p&gt;-Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/9092159751</link><guid>http://robertjpayne.com/post/9092159751</guid><pubDate>Fri, 19 Aug 2011 08:47:40 +1200</pubDate><category>xcode4</category><category>objc</category></item><item><title>Changing Xcode 4's default code snippets</title><description>&lt;p&gt;Xcode 4 brought along a code snippets feature that is actually useful. Nearly as useful as TextMate snippets but not quite as powerful. One of the most annoying things though is that Xcode bundles in a bunch of default snippets that you can neither edit nor remove in Xcode.&lt;/p&gt;

&lt;p&gt;With a little snooping around it&amp;#8217;s pretty easy to find how to update these or get rid of them so you can have your code looking the way you like again.&lt;/p&gt;

&lt;p&gt;&lt;script src="https://gist.github.com/1138017.js?file=xcode4-system-code-snippets"&gt;&lt;/script&gt;&lt;/p&gt;

&lt;p&gt;Is what you&amp;#8217;re looking for. It&amp;#8217;s a .plist and pretty straight forward. I tend to back up the System one and symlink my own from a Dropbox directory for all my replacements.&lt;/p&gt;

&lt;p&gt;Note you shouldn&amp;#8217;t remove this file though just empty it out if you&amp;#8217;re looking to get rid of all the snippets.&lt;/p&gt;

&lt;p&gt;-Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/8744601692</link><guid>http://robertjpayne.com/post/8744601692</guid><pubDate>Thu, 11 Aug 2011 07:59:28 +1200</pubDate><category>xcode4</category><category>code</category><category>snippets</category><category>objc</category></item><item><title>Installing oursql via pip on Mac OS X</title><description>&lt;p&gt;Even easier than ever using pip:&lt;/p&gt;

&lt;p&gt;&lt;script src="https://gist.github.com/1079868.js"&gt; &lt;/script&gt;&lt;/p&gt;

&lt;p&gt;Enjoy,&lt;br/&gt;
Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/7566222658</link><guid>http://robertjpayne.com/post/7566222658</guid><pubDate>Wed, 13 Jul 2011 19:08:11 +1200</pubDate><category>oursql</category><category>python</category><category>macosx</category></item><item><title>Xcode 4: How to bring back documentation table of contents!</title><description>&lt;script src="https://gist.github.com/1064563.js"&gt; &lt;/script&gt;&lt;p&gt;This snippet finds a  boolean flag that is set telling the documentation to hide stuff in Xcode 4 only and replaces it to make the documentation think it’s running in Xcode 3.&lt;/p&gt;
&lt;p&gt;It does have a caveat the documentation loads a bit wonky and refreshing whenever you click anything unlike Xcode 3 did. I still find it saves me loads of time.&lt;/p&gt;
&lt;p&gt;-Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/7235949766</link><guid>http://robertjpayne.com/post/7235949766</guid><pubDate>Mon, 11 Jul 2011 09:00:10 +1200</pubDate><category>Xcode</category></item><item><title>Xcode 4: How to add a delay to auto completion</title><description>&lt;p&gt;Xcode 4 brings amazing auto completion at your fingertips with the new source editors. For some weird reason, however, they removed the option to delay when it shows up. I tend to type extremely fast at times and having the auto complete constantly trying to suggest stuff can get in the way.&lt;/p&gt;

&lt;p&gt;Want to turn it back on? Just run the command below in terminal:
&lt;script src="https://gist.github.com/1074908.js?file=gistfile1.bash"&gt;&lt;/script&gt;
Change the delay to you&amp;#8217;re liking I find 0.1 to be the perfect balance.&lt;/p&gt;

&lt;p&gt;-Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/7235967308</link><guid>http://robertjpayne.com/post/7235967308</guid><pubDate>Mon, 11 Jul 2011 08:06:01 +1200</pubDate><category>Xcode</category></item><item><title>Working @ Cactuslab in Auckland New Zealand</title><description>&lt;p&gt;This week I started on a new adventure one that involves a rather unreal Cactus in a lab that I&amp;#8217;d probably call more of a office than anything else. Jokes aside I started as a full time Senior iOS Developer at Cactuslab in New Zealand. I&amp;#8217;m working with a small but incredibly talented team of people creating some pretty neat content for the web and more recently iOS enabled devices.&lt;/p&gt;

&lt;p&gt;As such I hope to blog a bit more about certain aspects of iOS and Objective-C as I start to use it on a more regular basis.&lt;/p&gt;

&lt;p&gt;-Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/7235959012</link><guid>http://robertjpayne.com/post/7235959012</guid><pubDate>Wed, 06 Oct 2010 05:42:20 +1300</pubDate><category>Random</category></item><item><title>New Site &amp; Blog Included</title><description>&lt;p&gt;Finally decided to get my own blog. I write quite a bit of content related to Zwopple and Zwoptex on the Zwopple company blog but I always felt that it wasn&amp;#8217;t a good idea to start to include more personal or unrelated content on that blog.&lt;/p&gt;

&lt;p&gt;Originally I wanted this site powered by python and a django flavored blogging system but after a couple of days of struggling and little luck I decided it was best to settle down with wordpress. It isn&amp;#8217;t bad in any way I was just looking to eliminate php off my web servers completely to reduce memory usage.&lt;/p&gt;

&lt;p&gt;Anyways, expect to see some more engaging content in the future related to all sorts of development I do.&lt;/p&gt;

&lt;p&gt;Cheers,
-Robert&lt;/p&gt;</description><link>http://robertjpayne.com/post/7235951039</link><guid>http://robertjpayne.com/post/7235951039</guid><pubDate>Sun, 22 Aug 2010 13:59:38 +1200</pubDate><category>Random</category></item></channel></rss>

