Hi,
Snow Leopard's developer documentation path was changed. Due to that I have the following suggestion to get rid of that:
in docset_query.rb (Objective-C.tmbundle/Support/lib) line 11 add the new location to the DOCSETS array:
DOCSETS = [ "/Developer/Documentation/DocSets/ com.apple.ADC_Reference_Library.CoreReference.docset", "/Developer/Documentation/DocSets/ com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset", "/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/ DocSets/com.apple.adc.documentation.AppleiPhone2_0.iPhoneLibrary.docset" ]
Furthermore one has to add to Objective-C's bundle command "Documentation for Word / Selection" at the beginning
if [[ "$(defaults read /System/Library/CoreServices/SystemVersion ProductVersion)" == 10.6.* ]]; then "${TM_RUBY:-ruby}" -r"$TM_BUNDLE_SUPPORT/lib/docset_query.rb" -e 'documentation_for_word' exit fi
or one can combine the check for 10.5.* and 10.6* of course.
IMPORTANT: This only works if the entire documentation is installed locally (as far as I know this is NOT the default!). To do it simply open Xcode 3.2 > Preferences > Documentation. Make sure that the docset 'Mac OS X 10.6 Core Library' is downloaded (press the Get button if grayed)
After that and reload bundles one has the new look&feel documentation in TM available.
Best,
--Hans
On 22 Sep 2009, at 13:44, Hans-Jörg Bibiko wrote:
Hi,
Snow Leopard's developer documentation path was changed. Due to that I have the following suggestion to get rid of that:
in docset_query.rb (Objective-C.tmbundle/Support/lib) line 11 add the new location to the DOCSETS array:
DOCSETS = [ "/Developer/Documentation/DocSets/ com.apple.ADC_Reference_Library.CoreReference.docset", "/Developer/Documentation/DocSets/ com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset", "/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/ DocSets/ com.apple.adc.documentation.AppleiPhone2_0.iPhoneLibrary.docset" ]
I think the following change is more future proof:
DOCSETS = Dir.glob("/Developer/Documentation/DocSets/*.docset")
and the now unnecessary check
next unless File.exists? docset
in search_docs() can also be dispensed with.
Furthermore one has to add to Objective-C's bundle command "Documentation for Word / Selection" at the beginning
if [[ "$(defaults read /System/Library/CoreServices/SystemVersion ProductVersion)" == 10.6.* ]]; then "${TM_RUBY:-ruby}" -r"$TM_BUNDLE_SUPPORT/lib/docset_query.rb" -e 'documentation_for_word' exit fi
What is this trying to fix? If it is the brief error message that pops up then I think one of the old docsets (kept from Leopard?) fails because of a docset format change so I just deleted them from the Developer/Documentation/DocSets folder.
Dave.
or one can combine the check for 10.5.* and 10.6* of course.
IMPORTANT: This only works if the entire documentation is installed locally (as far as I know this is NOT the default!). To do it simply open Xcode 3.2 > Preferences > Documentation. Make sure that the docset 'Mac OS X 10.6 Core Library' is downloaded (press the Get button if grayed)
After that and reload bundles one has the new look&feel documentation in TM available.
Best,
--Hans
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Sep 23, 2009, at 11:38 AM, Dave Baldwin wrote:
Furthermore one has to add to Objective-C's bundle command "Documentation for Word / Selection" at the beginning
if [[ "$(defaults read /System/Library/CoreServices/SystemVersion ProductVersion)" == 10.6.* ]]; then "${TM_RUBY:-ruby}" -r"$TM_BUNDLE_SUPPORT/lib/docset_query.rb" -e 'documentation_for_word' exit fi
What is this trying to fix? If it is the brief error message that pops up then I think one of the old docsets (kept from Leopard?) fails because of a docset format change so I just deleted them from the Developer/Documentation/DocSets folder.
Up to now that script gets rid of the different docsets searches for Tiger and Leopard. This tiny check should fix the issue that for Leopard and Snow Leopard the script should use docset_query.rb
And i agree with
DOCSETS = Dir.glob("/Developer/Documentation/DocSets/*.docset")
Best, --Hans
Just committed this change and the Build Failed one.