• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web


  • Subject: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
  • From: David Hoerl <email@hidden>
  • Date: Mon, 23 May 2011 11:12:53 -0400

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
  • Follow-Ups:
    • 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>
  • Prev by Date: XCode4 - Setup for 2 apps 1 framework
  • Next by Date: Re: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
  • Previous by thread: Re: XCode4 - Setup for 2 apps 1 framework
  • Next by thread: Re: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
  • Index(es):
    • Date
    • Thread