<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 03:07:05 +0000</lastBuildDate>
    <item>
      <title>(Objective C) Method swizzling - 0xced</title>
      <link>https://snipplr.com/view/11384/method-swizzling</link>
      <description>&lt;p&gt;Method swizzling in Objective-C 2.0, from http://cocoawithlove.com/2008/03/supersequent-implementation.html&lt;/p&gt;</description>
      <pubDate>Wed, 21 Jan 2009 04:11:03 UTC</pubDate>
      <guid>https://snipplr.com/view/11384/method-swizzling</guid>
    </item>
    <item>
      <title>(Bash) Convert nibs to newer format - 0xced</title>
      <link>https://snipplr.com/view/5754/convert-nibs-to-newer-format</link>
      <description>&lt;p&gt;Useful for converting several (old) nibs without having to manually open and save in Interface Builder.&lt;/p&gt;</description>
      <pubDate>Wed, 09 Apr 2008 02:52:43 UTC</pubDate>
      <guid>https://snipplr.com/view/5754/convert-nibs-to-newer-format</guid>
    </item>
    <item>
      <title>(Bash) Get cache (for NSURLConnections) directory on Leopard - 0xced</title>
      <link>https://snipplr.com/view/5509/get-cache-for-nsurlconnections-directory-on-leopard</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 20 Mar 2008 12:55:34 UTC</pubDate>
      <guid>https://snipplr.com/view/5509/get-cache-for-nsurlconnections-directory-on-leopard</guid>
    </item>
    <item>
      <title>(Bash) Delete a user created by a port (from MacPorts) - 0xced</title>
      <link>https://snipplr.com/view/5508/delete-a-user-created-by-a-port-from-macports</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 20 Mar 2008 12:53:04 UTC</pubDate>
      <guid>https://snipplr.com/view/5508/delete-a-user-created-by-a-port-from-macports</guid>
    </item>
    <item>
      <title>(Objective C) NSImage for generic stuff - 0xced</title>
      <link>https://snipplr.com/view/5507/nsimage-for-generic-stuff</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 20 Mar 2008 12:49:48 UTC</pubDate>
      <guid>https://snipplr.com/view/5507/nsimage-for-generic-stuff</guid>
    </item>
    <item>
      <title>(Bash) Default iTunes Store in Front Row 2 - 0xced</title>
      <link>https://snipplr.com/view/5266/default-itunes-store-in-front-row-2</link>
      <description>&lt;p&gt;This is how Front Row 2 gets the default iTunes Store&lt;/p&gt;</description>
      <pubDate>Tue, 04 Mar 2008 03:07:09 UTC</pubDate>
      <guid>https://snipplr.com/view/5266/default-itunes-store-in-front-row-2</guid>
    </item>
    <item>
      <title>(Perl) One liner perl extract content with regular expression - 0xced</title>
      <link>https://snipplr.com/view/4259/one-liner-perl-extract-content-with-regular-expression</link>
      <description>&lt;p&gt;Don't use the -l switch if you don't want a new line.&lt;/p&gt;</description>
      <pubDate>Tue, 04 Dec 2007 06:33:22 UTC</pubDate>
      <guid>https://snipplr.com/view/4259/one-liner-perl-extract-content-with-regular-expression</guid>
    </item>
    <item>
      <title>(Objective C) Detect already loaded older version of a preference pane - 0xced</title>
      <link>https://snipplr.com/view/4054/detect-already-loaded-older-version-of-a-preference-pane</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Wed, 31 Oct 2007 16:48:21 UTC</pubDate>
      <guid>https://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>https://snipplr.com/view/3924/reload-a-preference-pane</link>
      <description>&lt;p&gt;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().&lt;/p&gt;</description>
      <pubDate>Thu, 18 Oct 2007 15:16:16 UTC</pubDate>
      <guid>https://snipplr.com/view/3924/reload-a-preference-pane</guid>
    </item>
    <item>
      <title>(Objective C) Relaunch an application - 0xced</title>
      <link>https://snipplr.com/view/3923/relaunch-an-application</link>
      <description>&lt;p&gt;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().&lt;/p&gt;</description>
      <pubDate>Thu, 18 Oct 2007 15:11:39 UTC</pubDate>
      <guid>https://snipplr.com/view/3923/relaunch-an-application</guid>
    </item>
    <item>
      <title>(Objective C) Handle invalid UTF-8 - 0xced</title>
      <link>https://snipplr.com/view/3788/handle-invalid-utf8</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <pubDate>Wed, 26 Sep 2007 07:17:03 UTC</pubDate>
      <guid>https://snipplr.com/view/3788/handle-invalid-utf8</guid>
    </item>
    <item>
      <title>(Objective C) Add a menu item - 0xced</title>
      <link>https://snipplr.com/view/3722/add-a-menu-item</link>
      <description>&lt;p&gt;Programmatically add a menu item&lt;/p&gt;</description>
      <pubDate>Tue, 18 Sep 2007 09:26:12 UTC</pubDate>
      <guid>https://snipplr.com/view/3722/add-a-menu-item</guid>
    </item>
    <item>
      <title>(Objective C) Compare two version strings - 0xced</title>
      <link>https://snipplr.com/view/2771/compare-two-version-strings</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 01 Jun 2007 09:22:54 UTC</pubDate>
      <guid>https://snipplr.com/view/2771/compare-two-version-strings</guid>
    </item>
  </channel>
</rss>
