<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - 0xced</title>
<link>http://snipplr.com/users/0xced/language/objective-c</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 08 Oct 2008 06:57:12 GMT</pubDate>
<item>
<title>(Objective C) NSImage for generic stuff</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) Detect already loaded older version of a preference pane</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</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</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) Handle invalid UTF-8</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</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) Compare two version strings</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>