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).
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