• 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
Re: 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]

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

References: 
 >If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web (From: David Hoerl <email@hidden>)

  • Prev by Date: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
  • Next by Date: Re: XCode4 - Setup for 2 apps 1 framework
  • Previous by thread: If you miss the "Table of Contents" in Xcode 4 Doc Viewer, Service to get you to the web
  • Next by thread: Debugger Printing Wrong Variable's Value
  • Index(es):
    • Date
    • Thread