<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: View man pages in Xcode script</title> <atom:link href="http://toxicsoftware.com/manoxcode/feed/" rel="self" type="application/rss+xml" /><link>http://toxicsoftware.com/manoxcode/</link> <description>RANDOMIZE USR 0</description> <lastBuildDate>Tue, 24 Jan 2012 20:00:16 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Nico</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21493</link> <dc:creator>Nico</dc:creator> <pubDate>Fri, 23 Nov 2007 09:11:46 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21493</guid> <description>&lt;p&gt;Turns out that what I wrote doesn&#039;t work with Leopard (it did work with Tiger, though). But the apple_ref scheme is actually documented: http://developer.apple.com/documentation/DeveloperTools/Conceptual/HeaderDoc/anchors/chapter_950_section_2.html#//apple_ref/doc/uid/TP40001215-CH347-SW1&lt;/p&gt;&lt;p&gt;So to open the &quot;interesting&quot; man page (1) (that&#039;s what your script does as well) you can use&lt;/p&gt;&lt;pre&gt;&lt;code&gt;tell application &quot;Xcode&quot; to show document with apple_ref &quot;//apple_ref/c/func/strlen&quot; &lt;/code&gt;&lt;/pre&gt;&lt;p&gt;to open the man page for strlen. And&lt;/p&gt;&lt;pre&gt;&lt;code&gt;tell application &quot;Xcode&quot; to show document with apple_ref &quot;//apple_ref/occ/instm/NSArray/initWithArray:copyItems:&quot; &lt;/code&gt;&lt;/pre&gt;&lt;p&gt;to show the documentation for -[NSArray initWithArray:copyItems:]. And so on. Semi-useful if you want to use a better editor than xed for code editing, but still look at XCode documentation from there (only semi-useful because you have to guess the top-level link like occ, c etc first before sending the applescript command to xcode).&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Turns out that what I wrote doesn&#8217;t work with Leopard (it did work with Tiger, though). But the apple_ref scheme is actually documented: <a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/HeaderDoc/anchors/chapter_950_section_2.html#//apple_ref/doc/uid/TP40001215-CH347-SW1" rel="nofollow">http://developer.apple.com/documentation/DeveloperTools/Conceptual/HeaderDoc/anchors/chapter_950_section_2.html#//apple_ref/doc/uid/TP40001215-CH347-SW1</a></p><p>So to open the &#8220;interesting&#8221; man page (1) (that&#8217;s what your script does as well) you can use</p><pre><code>tell application "Xcode" to show document with apple_ref "//apple_ref/c/func/strlen"
</code></pre><p>to open the man page for strlen. And</p><pre><code>tell application "Xcode" to show document with apple_ref "//apple_ref/occ/instm/NSArray/initWithArray:copyItems:"
</code></pre><p>to show the documentation for -[NSArray initWithArray:copyItems:]. And so on. Semi-useful if you want to use a better editor than xed for code editing, but still look at XCode documentation from there (only semi-useful because you have to guess the top-level link like occ, c etc first before sending the applescript command to xcode).</p>]]></content:encoded> </item> <item><title>By: Nico</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21927</link> <dc:creator>Nico</dc:creator> <pubDate>Fri, 23 Nov 2007 09:11:46 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21927</guid> <description>&lt;p&gt;Turns out that what I wrote doesn&#039;t work with Leopard (it did work with Tiger, though). But the apple_ref scheme is actually documented: &lt;a href=&quot;http://developer.apple.com/documentation/DeveloperTools/Conceptual/HeaderDoc/anchors/chapter_950_section_2.html#//apple_ref/doc/uid/TP40001215-CH347-SW1&quot;&gt;http://developer.apple.com/documentation/Develo...&lt;/a&gt;&lt;br&gt;&lt;br&gt;So to open the &quot;interesting&quot; man page (1) (that&#039;s what your script does as well) you can use &lt;br&gt;&lt;br&gt;    tell application &quot;Xcode&quot; to show document with apple_ref &quot;//apple_ref/c/func/strlen&quot;&lt;br&gt;&lt;br&gt;to open the man page for strlen. And &lt;br&gt;&lt;br&gt;    tell application &quot;Xcode&quot; to show document with apple_ref &quot;//apple_ref/occ/instm/NSArray/initWithArray:copyItems:&quot;&lt;br&gt;&lt;br&gt;to show the documentation for -[NSArray initWithArray:copyItems:]. And so on. Semi-useful if you want to use a better editor than xed for code editing, but still look at XCode documentation from there (only semi-useful because you have to guess the top-level link like occ, c etc first before sending the applescript command to xcode).&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Turns out that what I wrote doesn&#39;t work with Leopard (it did work with Tiger, though). But the apple_ref scheme is actually documented: <a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/HeaderDoc/anchors/chapter_950_section_2.html#//apple_ref/doc/uid/TP40001215-CH347-SW1">http://developer.apple.com/documentation/Develo&#8230;</a><br /><br />So to open the &#8220;interesting&#8221; man page (1) (that&#39;s what your script does as well) you can use <br /><br /> tell application &#8220;Xcode&#8221; to show document with apple_ref &#8220;//apple_ref/c/func/strlen&#8221;<br /><br />to open the man page for strlen. And <br /><br /> tell application &#8220;Xcode&#8221; to show document with apple_ref &#8220;//apple_ref/occ/instm/NSArray/initWithArray:copyItems:&#8221;<br /><br />to show the documentation for -[NSArray initWithArray:copyItems:]. And so on. Semi-useful if you want to use a better editor than xed for code editing, but still look at XCode documentation from there (only semi-useful because you have to guess the top-level link like occ, c etc first before sending the applescript command to xcode).</p>]]></content:encoded> </item> <item><title>By: schwa</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21926</link> <dc:creator>schwa</dc:creator> <pubDate>Tue, 25 Sep 2007 19:44:22 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21926</guid> <description>&lt;p&gt;Nico, if that works then very nice.&lt;br&gt;&lt;br&gt;But you&#039;ve just killed my blog post! ;-)&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Nico, if that works then very nice.<br /><br />But you&#39;ve just killed my blog post! ;-)</p>]]></content:encoded> </item> <item><title>By: Nico</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21925</link> <dc:creator>Nico</dc:creator> <pubDate>Tue, 25 Sep 2007 19:24:16 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21925</guid> <description>&lt;p&gt;osascript -e &#039;&#039;tell application &quot;XCode&quot; to show document with apple_ref &quot;//apple_ref/doc/man/1/&#039;$1&lt;br&gt;&lt;br&gt;should work as well and doesn&#039;t require gui scripting. Use &quot;//apple_ref/doc/c_ref/&quot; to show documentation for C code (e.g. Carbon functions and constants; cocoa class names work too).&lt;/p&gt; </description> <content:encoded><![CDATA[<p>osascript -e &#39;&#39;tell application &#8220;XCode&#8221; to show document with apple_ref &#8220;//apple_ref/doc/man/1/&#39;$1<br /><br />should work as well and doesn&#39;t require gui scripting. Use &#8220;//apple_ref/doc/c_ref/&#8221; to show documentation for C code (e.g. Carbon functions and constants; cocoa class names work too).</p>]]></content:encoded> </item> <item><title>By: schwa</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21221</link> <dc:creator>schwa</dc:creator> <pubDate>Tue, 25 Sep 2007 18:44:22 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21221</guid> <description>&lt;p&gt;Nico, if that works then very nice.&lt;/p&gt;&lt;p&gt;But you&#039;ve just killed my blog post! ;-)&lt;/p&gt; </description> <content:encoded><![CDATA[<p>Nico, if that works then very nice.</p><p>But you&#8217;ve just killed my blog post! ;-)</p>]]></content:encoded> </item> <item><title>By: Nico</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21220</link> <dc:creator>Nico</dc:creator> <pubDate>Tue, 25 Sep 2007 18:24:16 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21220</guid> <description>&lt;p&gt;osascript -e &#039;&#039;tell application &quot;XCode&quot; to show document with apple_ref &quot;//apple_ref/doc/man/1/&#039;$1&lt;/p&gt;&lt;p&gt;should work as well and doesn&#039;t require gui scripting. Use &quot;//apple_ref/doc/c_ref/&quot; to show documentation for C code (e.g. Carbon functions and constants; cocoa class names work too).&lt;/p&gt; </description> <content:encoded><![CDATA[<p>osascript -e &#8221;tell application &#8220;XCode&#8221; to show document with apple_ref &#8220;//apple_ref/doc/man/1/&#8217;$1</p><p>should work as well and doesn&#8217;t require gui scripting. Use &#8220;//apple_ref/doc/c_ref/&#8221; to show documentation for C code (e.g. Carbon functions and constants; cocoa class names work too).</p>]]></content:encoded> </item> <item><title>By: hollywood</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21924</link> <dc:creator>hollywood</dc:creator> <pubDate>Mon, 30 Jul 2007 11:25:56 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21924</guid> <description>&lt;p&gt;I like the way Xcode’s viewer inserts hyperlinks to cross-referenced man pages.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>I like the way Xcode’s viewer inserts hyperlinks to cross-referenced man pages.</p>]]></content:encoded> </item> <item><title>By: hollywood</title><link>http://toxicsoftware.com/manoxcode/comment-page-1/#comment-21168</link> <dc:creator>hollywood</dc:creator> <pubDate>Mon, 30 Jul 2007 10:25:56 +0000</pubDate> <guid isPermaLink="false">http://toxicsoftware.com/blog/manoxcode/#comment-21168</guid> <description>&lt;p&gt;I like the way Xcode’s viewer inserts hyperlinks to cross-referenced man pages.&lt;/p&gt; </description> <content:encoded><![CDATA[<p>I like the way Xcode’s viewer inserts hyperlinks to cross-referenced man pages.</p>]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 5/14 queries in 0.019 seconds using disk: basic
Object Caching 321/321 objects using disk: basic

Served from: toxicsoftware.com @ 2012-05-21 12:49:03 -->
