• 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: exposing only what you want - headers and Swift?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exposing only what you want - headers and Swift?


  • Subject: Re: exposing only what you want - headers and Swift?
  • From: Thomas Wetmore <email@hidden>
  • Date: Sun, 26 Jun 2016 15:06:49 -0400

A framework does not include source. It as an opaque bundle that contains a public API and compiled code as an integrated whole.

> On Jun 26, 2016, at 2:48 PM, William Squires <email@hidden> wrote:
>
> True, but they'd still have the source .swift file as the compiler would need this to know what symbols, identifiers, etc... there were, even if they were marked private. Whereas in ObjC, I can give someone the header and the framework, and they can't see the internals, and thus be tempted to program to an implementation (or, for that matter, myself) :)
>
> On Jun 25, 2016, at 3:11 PM, Quincey Morris <email@hidden> wrote:
>
>> On Jun 25, 2016, at 12:57 , Quincey Morris <email@hidden> wrote:
>>>
>>> provide a framework
>>
>> Sorry, just to clarify since you asked about this, a Swift language framework module only exposes things explicitly declared “public”. Things without access controls are implicitly “internal” and so not exposed in frameworks.
>>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: exposing only what you want - headers and Swift?
      • From: Jim Adams <email@hidden>
References: 
 >Re: exposing only what you want - headers and Swift? (From: William Squires <email@hidden>)

  • Prev by Date: Re: exposing only what you want - headers and Swift?
  • Next by Date: How do I get data out of NSRuleEditor?
  • Previous by thread: Re: exposing only what you want - headers and Swift?
  • Next by thread: Re: exposing only what you want - headers and Swift?
  • Index(es):
    • Date
    • Thread