Reputation: 22252
When I browse online iOS docs for classes, it has an option to show swift
, obj-c
, or both
. I have mine currently set on obj-c
(I peek at Swift from time to time, but in my day to day work, it just clutters the docs).
Is there a way to do similar in the integrate help viewer for Xcode 6? Every time I browse a class document, I have to mentally filter out all of the swift
variants.
Upvotes: 2
Views: 974
Reputation: 15180
I navigated to the bottom of those folder trees, located the files specified (one for iOS docs, one for Mac OS X docs), duplicated each file for a backup (command D in Finder), opened each file and pasted :
div .Swift {
display: none !important; }
at the end of each file.
Rock and Roll! Thank you pointum, you made my day.
Ref: My file path was like this. Note that your path may differ by the number just before the /CSS/
Mac OS X Documentation File (yours may differ by the 1058) ~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.OSX.docset/Contents/Resources/Documents/Resources/1058/CSS/xcode5.css
iOS Documentation File (yours may differ by the 1081) ~/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset/Contents/Resources/Documents/Resources/1081/CSS/xcode5.css
Upvotes: 0
Reputation: 3177
The documentation is just a set of HTML files. If it's downloaded, you can edit a CSS file to completely hide Swift or Objective-C code.
/Users/XXX/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.XXX.docset/Contents/Resources/Documents/
Switch to Finder, and use "Go" > "Go to Folder" menu to open up the folder.
Browse to Resources/XXXX/CSS
folder and edit "xcode5.css" file. You should add either of these blocks to hide Swift or Objective-C:
div .Swift { display: none !important; }
div .Objective-C { display: none !important; }
Restart Xcode and enjoy reduced clutter.
Upvotes: 3
Reputation: 80265
One way is to choose Editor -> Share -> Open in Browser
. You can also make a shortcut via Preferences... -> Key Bindings
or the Keyboard System Preferences.
It still opens Safari, but it is just one step, so it might be a good solution to your problem.
Upvotes: 0