Re: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
Re: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
- Subject: Re: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
- From: Alexander von Below <email@hidden>
- Date: Mon, 23 May 2011 17:16:57 +0200
Thank you very much!
As an aside: Why was this removed? My bug report on this was closed with a hint to the navigator bar
Alex
Am 23.05.2011 um 17:12 schrieb David Hoerl:
> If you miss the "Table of Contents" pane in the Xcode 4 documentation viewer, attached is a script you can turn into a service to get to the web class reference.
>
> - open Automator, and create a new Service named GoogleSearch
>
> - drag an AppleScript into the right pane, which should have "Service receives Text in Any Application"
>
> - replace the Applescript shell with this:
>
> on run {input, parameters}
>
> set search_object to input
>
> tell application "Safari" to activate
>
> set new_url to "http://www.google.com/search?q=site:developer.apple.com/library/ios/documentation" & " " & "\"" & search_object & " Class Reference" & "\""
> tell application "Safari" to make new document with properties {URL:new_url}
>
> tell application "System Events"
> set frontmost of process "Safari" to true
> end tell
> end run
>
> - save it.
>
>
> Now in an Xcode 4 edit window, select some class like NSString, then from the Xcode menu select Google Search.
>
> Safari comes to the front with the first search item being Apple's NSString Class Reference. Click on it - now you have NSString with the Full Table of Contents on the left.
>
> David
>
> PS: alternately download it from https://public.me.com/dhoerl - in the Xcode folder. You can verify the script by opening the file in Automator.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden