<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/objective-c</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 17 May 2008 09:10:49 GMT</pubDate>
<item>
<title>(Objective C) Filesystem - Testing FS Type - zingo</title>
<link>http://snipplr.com/view/6193/filesystem--testing-fs-type/</link>
<description><![CDATA[ <p>This can be used to test FS type.</p> ]]></description>
<pubDate>Mon, 12 May 2008 21:54:23 GMT</pubDate>
<guid>http://snipplr.com/view/6193/filesystem--testing-fs-type/</guid>
</item>
<item>
<title>(Objective C) Interface builder &amp;amp; iphone sdk - buscarini</title>
<link>http://snipplr.com/view/5599/interface-builder--iphone-sdk/</link>
<description><![CDATA[ <p>Para usar el interface builder con el iphone hay que crear una vista o una ventana, guardarla dentro del proyecto, y meter esta línea en appdelegate en applicationDidFinishLaunching.</p> ]]></description>
<pubDate>Fri, 28 Mar 2008 14:09:37 GMT</pubDate>
<guid>http://snipplr.com/view/5599/interface-builder--iphone-sdk/</guid>
</item>
<item>
<title>(Objective C) NSImage for generic stuff - 0xced</title>
<link>http://snipplr.com/view/5507/nsimage-for-generic-stuff/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Mar 2008 12:49:48 GMT</pubDate>
<guid>http://snipplr.com/view/5507/nsimage-for-generic-stuff/</guid>
</item>
<item>
<title>(Objective C) Testing Regular Expressions for NSString - zingo</title>
<link>http://snipplr.com/view/5165/testing-regular-expressions-for-nsstring/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 23 Feb 2008 22:16:42 GMT</pubDate>
<guid>http://snipplr.com/view/5165/testing-regular-expressions-for-nsstring/</guid>
</item>
<item>
<title>(Objective C) Saving Data to File - zingo</title>
<link>http://snipplr.com/view/5138/saving-data-to-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 21 Feb 2008 01:50:59 GMT</pubDate>
<guid>http://snipplr.com/view/5138/saving-data-to-file/</guid>
</item>
<item>
<title>(Objective C) Running a pre-canned AppleScript - sudarkoff</title>
<link>http://snipplr.com/view/5092/running-a-precanned-applescript/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 16 Feb 2008 19:14:33 GMT</pubDate>
<guid>http://snipplr.com/view/5092/running-a-precanned-applescript/</guid>
</item>
<item>
<title>(Objective C) Macro for ASL Log like NSLog - zingo</title>
<link>http://snipplr.com/view/4684/macro-for-asl-log-like-nslog/</link>
<description><![CDATA[ <p>Macro to give an asl_log-like NSLog.</p> ]]></description>
<pubDate>Sun, 20 Jan 2008 20:19:32 GMT</pubDate>
<guid>http://snipplr.com/view/4684/macro-for-asl-log-like-nslog/</guid>
</item>
<item>
<title>(Objective C) Installing things to /usr/bin - Trampolines - sudarkoff</title>
<link>http://snipplr.com/view/4654/installing-things-to-usrbin--trampolines/</link>
<description><![CDATA[ <p>Instead of installing the real tools I install 2 trampoline applications in /usr/bin called respectively pdflock and pdfunlock. The trampoline then uses NSWorkspace to locate the bundle, and starts the real executable found in the application’s bundle.</p> ]]></description>
<pubDate>Sat, 19 Jan 2008 00:25:42 GMT</pubDate>
<guid>http://snipplr.com/view/4654/installing-things-to-usrbin--trampolines/</guid>
</item>
<item>
<title>(Objective C) Publish an object via PDO (aka Cocoa Distributed Objects) - ericj</title>
<link>http://snipplr.com/view/4547/publish-an-object-via-pdo-aka-cocoa-distributed-objects/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 13 Jan 2008 20:07:00 GMT</pubDate>
<guid>http://snipplr.com/view/4547/publish-an-object-via-pdo-aka-cocoa-distributed-objects/</guid>
</item>
<item>
<title>(Objective C) Macro for VERBOSE_DEBUG_OUTPUT - zingo</title>
<link>http://snipplr.com/view/4235/macro-for-verbosedebugoutput/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 01 Dec 2007 19:28:07 GMT</pubDate>
<guid>http://snipplr.com/view/4235/macro-for-verbosedebugoutput/</guid>
</item>
<item>
<title>(Objective C) Detect already loaded older version of a preference pane - 0xced</title>
<link>http://snipplr.com/view/4054/detect-already-loaded-older-version-of-a-preference-pane/</link>
<description><![CDATA[ <p>This detects if a preference pane is loaded over an already loaded older version. If the version mismatches, the reload tool (http://snipplr.com/view/3924/reload-a-preference-pane/) is launched and System Preferences is quitted.</p> ]]></description>
<pubDate>Wed, 31 Oct 2007 16:48:21 GMT</pubDate>
<guid>http://snipplr.com/view/4054/detect-already-loaded-older-version-of-a-preference-pane/</guid>
</item>
<item>
<title>(Objective C) Reload a preference pane - 0xced</title>
<link>http://snipplr.com/view/3924/reload-a-preference-pane/</link>
<description><![CDATA[ <p>The preference pane that need to be reloaded must fork 'reload' with two arguments, then terminate System Preferences. In Cocoa, the fork is easily achieved with a NSTask. The first argument must be the bundle identifier of the preference pane to reload. The second argument must be the process identifier of the terminating application, i.e. System Preferences. In Cocoa, you can get it with [[NSProcessInfo processInfo] processIdentifier], which is equivalent to getpid().</p> ]]></description>
<pubDate>Thu, 18 Oct 2007 15:16:16 GMT</pubDate>
<guid>http://snipplr.com/view/3924/reload-a-preference-pane/</guid>
</item>
<item>
<title>(Objective C) Relaunch an application - 0xced</title>
<link>http://snipplr.com/view/3923/relaunch-an-application/</link>
<description><![CDATA[ <p>The application that needs to be restarted must fork 'relaunch' with two arguments, then terminate. In Cocoa, the fork is easily achieved with a NSTask. The first argument must be the path to the application to relaunch. The second argument must be the process identifier of the terminating application. In Cocoa, you can get it with [[NSProcessInfo processInfo] processIdentifier], which is equivalent to getpid().</p> ]]></description>
<pubDate>Thu, 18 Oct 2007 15:11:39 GMT</pubDate>
<guid>http://snipplr.com/view/3923/relaunch-an-application/</guid>
</item>
<item>
<title>(Objective C) Importing data with coredata - zingo</title>
<link>http://snipplr.com/view/3884/importing-data-with-coredata/</link>
<description><![CDATA[ <p>A database table is basically an array of dictionary objects. As long 
as all the fields are valid property list types, you can loop through 
the array creating a managed object for each dictionary and setting 
the values. If you have an array controller in your nib and it's 
configured for your managed object, you can use this (where plist is 
expected to be an NSArray* - not sure why I made it an id).</p> ]]></description>
<pubDate>Thu, 11 Oct 2007 21:57:17 GMT</pubDate>
<guid>http://snipplr.com/view/3884/importing-data-with-coredata/</guid>
</item>
<item>
<title>(Objective C) Handle invalid UTF-8 - 0xced</title>
<link>http://snipplr.com/view/3788/handle-invalid-utf8/</link>
<description><![CDATA[ <p>Convert UTF-8 NSData to NSString without failing if UTF-8 is invalid. Instead, replace invalid characters with the replacement character (�). This requires some Omni frameworks. Use this as a replacement for NSString's initWithData:encoding: method.</p> ]]></description>
<pubDate>Wed, 26 Sep 2007 07:17:03 GMT</pubDate>
<guid>http://snipplr.com/view/3788/handle-invalid-utf8/</guid>
</item>
<item>
<title>(Objective C) Add a menu item - 0xced</title>
<link>http://snipplr.com/view/3722/add-a-menu-item/</link>
<description><![CDATA[ <p>Programmatically add a menu item</p> ]]></description>
<pubDate>Tue, 18 Sep 2007 09:26:12 GMT</pubDate>
<guid>http://snipplr.com/view/3722/add-a-menu-item/</guid>
</item>
<item>
<title>(Objective C) Run an NSAlert Sheet in your Cocoa App - tylerhall</title>
<link>http://snipplr.com/view/3517/run-an-nsalert-sheet-in-your-cocoa-app/</link>
<description><![CDATA[ <p>This code runs an alert sheet in your Cocoa app. You first create an NSAlert object, its properties, and define the method that should be called when the user dismisses the sheet. Then write the corresponding handler that tests for an "OK" or "Cancel" button press.</p> ]]></description>
<pubDate>Tue, 14 Aug 2007 15:21:41 GMT</pubDate>
<guid>http://snipplr.com/view/3517/run-an-nsalert-sheet-in-your-cocoa-app/</guid>
</item>
<item>
<title>(Objective C) NSLog with NSError and NSArray with managedObjectContext - zingo</title>
<link>http://snipplr.com/view/3497/nslog-with-nserror-and-nsarray-with-managedobjectcontext/</link>
<description><![CDATA[ <p>Prints content from an NSError or NSArray content from a managedObjectContext.</p> ]]></description>
<pubDate>Thu, 09 Aug 2007 19:28:39 GMT</pubDate>
<guid>http://snipplr.com/view/3497/nslog-with-nserror-and-nsarray-with-managedobjectcontext/</guid>
</item>
<item>
<title>(Objective C) kill app after expire date - zingo</title>
<link>http://snipplr.com/view/3448/kill-app-after-expire-date/</link>
<description><![CDATA[ <p>Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value.</p> ]]></description>
<pubDate>Fri, 03 Aug 2007 22:48:27 GMT</pubDate>
<guid>http://snipplr.com/view/3448/kill-app-after-expire-date/</guid>
</item>
<item>
<title>(Objective C) Compare two version strings - 0xced</title>
<link>http://snipplr.com/view/2771/compare-two-version-strings/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Jun 2007 09:22:54 GMT</pubDate>
<guid>http://snipplr.com/view/2771/compare-two-version-strings/</guid>
</item>
</channel>
</rss>