<?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/tags/application</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 05 Dec 2008 01:42:59 GMT</pubDate>
<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>
</channel>
</rss>