On Wed, Jun 17, 2015 at 10:16 AM, Quincey Morris
<quinceymor...@rivergatesoftware.com> wrote:
> On Jun 17, 2015, at 00:56 , Graham Cox <graham....@bigpond.com> wrote:
>>
>> To me this is actually a good thing that I’ll be sorry to see go away in 
>> Swift.
>>
>> With a separate header that only contains the public stuff, I can see at a 
>> glance what a class does without being overwhelmed by its implementation 
>> details.
>
> It’s already done in Swift 2. While you’re editing in the one pane, the 
> Counterparts setting in the assistant pane (which in Obj-C shows the .h when 
> you edit the .m) shows exactly this view, along with documentation (///) 
> comments. It actually shows public and internal API within a module 
> (basically the same thing), but I assume when used cross-module it shows only 
> public API, but I haven’t had a chance to try that yet (though this is what 
> Command-click on Cocoa APIs shows you, so I assume it works the same).

Maybe I misinterpreted the presentations, but this is not a property
of the language (i.e. Swift 2), it's the IDE that does this. Which
means that would you edit Swift code in TextWrangler, you would still
only have the verbose source file.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to