<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Red peanuts - Tip of the day</title>
    <link>http://devteam.taktik.be/</link>
    <description>Taktik's development blog</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Tue, 09 Sep 2008 08:40:53 GMT</pubDate>

    <image>
        <url>http://devteam.taktik.be/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: Red peanuts - Tip of the day - Taktik's development blog</title>
        <link>http://devteam.taktik.be/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>A Launch Service tip</title>
    <link>http://devteam.taktik.be/index.php?/archives/4-A-Launch-Service-tip.html</link>
            <category>Tip of the day</category>
    
    <comments>http://devteam.taktik.be/index.php?/archives/4-A-Launch-Service-tip.html#comments</comments>
    <wfw:comment>http://devteam.taktik.be/wfwcomment.php?cid=4</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://devteam.taktik.be/rss.php?version=2.0&amp;type=comments&amp;cid=4</wfw:commentRss>
    

    <author>nospam@example.com (Denis Muquardt)</author>
    <content:encoded>
    How the Finder can determine which application handles a particular file on MacOS X?&lt;br /&gt;
How the Finder can distinguish a bundle from a simple folder ? *&lt;br /&gt;
How the Finder can set the document&#039;s icon.&lt;br /&gt;
All these operations are handled by the MacOS X Launch Service. This service uses a database to record informations about all applications.&lt;br /&gt;
By example, when the finder copies an application on the hard drive from a distant volume or any other device, it populates the registry with the informations contained in the &lt;b&gt;Content.plist&lt;/b&gt; file.&lt;br /&gt;
&lt;br /&gt;
You can explore and modify the Launch Service database with a the little tool called &lt;b&gt;lsregister&lt;/b&gt; located at path &lt;b&gt;/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(*) the finder examinates also the HFS+ bundle flag on a folder to detect a bundle. You can use the developer tool &lt;b&gt;SetFile&lt;/b&gt; to switch on/off the flag&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 09 Sep 2008 10:04:11 +0200</pubDate>
    <guid isPermaLink="false">http://devteam.taktik.be/index.php?/archives/4-guid.html</guid>
    
</item>
<item>
    <title>Cryptography on your MacOS X program</title>
    <link>http://devteam.taktik.be/index.php?/archives/2-Cryptography-on-your-MacOS-X-program.html</link>
            <category>Cocoa</category>
            <category>Tip of the day</category>
    
    <comments>http://devteam.taktik.be/index.php?/archives/2-Cryptography-on-your-MacOS-X-program.html#comments</comments>
    <wfw:comment>http://devteam.taktik.be/wfwcomment.php?cid=2</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://devteam.taktik.be/rss.php?version=2.0&amp;type=comments&amp;cid=2</wfw:commentRss>
    

    <author>nospam@example.com (Denis Muquardt)</author>
    <content:encoded>
    For this first tip, I just want to help you performing basic operations like generating digests (MD5, SHA1, …) or dealing with asymetric keys in your programs. &lt;br /&gt;
&lt;br /&gt;
On the Mac OS X platform, there are basically two libraries providing these crypto capabilities : &lt;br /&gt;
&lt;br /&gt;
1 - openSSL&lt;br /&gt;
2 - Apple CDSA&lt;br /&gt;
&lt;br /&gt;
For the first one, just import the header(s) you need from &lt;em&gt;/usr/include/openssl&lt;/em&gt; and then link your product with the &lt;em&gt;/usr/lib/libsecurity.dylib&lt;/em&gt;.&lt;br /&gt;
With CDSA, you have to add the &lt;em&gt;/System/Library/Frameworks/Security.framework&lt;/em&gt; to your Xcode project and then link your product with it.&lt;br /&gt;
&lt;br /&gt;
It seems to me that openSSL is easier to use but the choice between these two libraries may be triggered by politics.&lt;br /&gt;
&lt;br /&gt;
For the CDSA documentation, I strongly recommend you to download and read the examples provided by Apple : CryptoSample&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Tue, 01 Jul 2008 08:26:01 +0200</pubDate>
    <guid isPermaLink="false">http://devteam.taktik.be/index.php?/archives/2-guid.html</guid>
    
</item>

</channel>
</rss>