• 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: Swift Headers (or lack of)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift Headers (or lack of)


  • Subject: Re: Swift Headers (or lack of)
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 05 Jun 2014 11:05:57 -0700


On Jun 5, 2014, at 8:43 AM, Gordon Apple <email@hidden> wrote:

 I have not yet downloaded the new stuff, so maybe this is handled in xcode, but my next question is what about headers for us programmers. If I’m using a class from elsewhere, I don’t want to be looking at a massive implementation file. Is there a provision for just displaying the public definitions?

Just as with Objective-C, you Command-click on an identifier like a class name, and Xcode will open its interface. In the case of Swift, it synthesizes a source file (with no method bodies, of course, just declarations) and opens that. Option-click probably works too, if the class has documentation.

Presumably there’s also some command-line way to generate these interface-only source files, but I haven’t had a chance to experiment yet.

—Jens
 _______________________________________________
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: 
 >Swift Headers (or lack of) (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: swift and objective-c
  • Next by Date: Swift
  • Previous by thread: Re: Swift Headers (or lack of)
  • Next by thread: Swift
  • Index(es):
    • Date
    • Thread