[TxMt] Searching for Objective-C documentation
dave.baldwin at 3dlabs.com
Tue May 27 14:26:50 UTC 2008
On 27 May 2008, at 14:32, Allan Odgaard wrote:
> On 27 May 2008, at 10:12, Dave Baldwin wrote:
>> On 27 May 2008, at 08:52, Allan Odgaard wrote:
>>> On 27 May 2008, at 09:44, Dave Baldwin wrote:
>>>>> Also, I need it to fallback on ‘man’ (section 2-9) so it
>>>>> still finds documentation for stuff in the standard C library
>>>>> and POSIX. I’ll look into that in the nearest future and then
>>>>> do a commit.
>>>> Version with the man stuff and some other fixes.
>>> I get a redirect to file://localhost(null) for e.g. fprintf (and
>>> also unknown stuff).
>>> The Documentation For Selector is now throwing an error.
>> This is most strange - both things work fine for me. Can you be
>> more specific on what is happening?
> This is how I patched the Objective-C bundle to use your script: http://pastie.textmate.org/203978
> (and I copied your ruby lib into Support/lib in that bundle).
> If I create a new document, set language to Objective-C and enter
> just ‘fprintf()’ and press ⌃H on that word, I get a “not
> found” error message (in the HTML output window).
Do you mean an empty HTML window with a 'Table of Contents' hyperlink
that goes nowhere? - I get this if I put in fprintfff which I know
doesn't exist. fprintf on the other hand gives the expected result
Do have a method called man_page (query) in your version of
> If I enter ‘[dict objectForKey:key]’ and press ⌃H when inside
> the brackets, I get:
> docset_query.rb:108:in `documentation_for_selector': undefined
> method `length' for nil:NilClass (NoMethodError)
> from /tmp/temp_textmate.M5yawa:4:in `inject'
> from docset_query.rb:108:in `each'
> from docset_query.rb:108:in `inject'
> from docset_query.rb:108:in `documentation_for_selector'
> from /tmp/temp_textmate.M5yawa:5
This is expecting the entire document as input whereas the original
version is expecting the selected text or scope as input (I think).
Maybe this is causing the problem?
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
More information about the textmate