Re: Swift DispatchQueue docs?

2016-11-21 Thread Wim Lewis

On Nov 21, 2016, at 1:48 PM, Rick Mann  wrote:
> Is there a way to look at the C header files for GCD? I tried opening 
> Dispatch.h, and Xcode is stuck "Generating Interface…", presumably a Swift 
> interface I don't want to see.

I've found that if I tell Xcode to open Foo.h, and Xcode gets stuck generating 
a nonexistent interface like that, opening Foo.h *again* while looking at the 
empty "Generating Interface…" or "No editor" pane will cause Xcode to actually 
open Foo.h.

> They seem pretty terrible. No explanation of any of the things.

I haven't found a universal way to discover how a given API is mapped into 
Swift except by getting Xcode's code-completion to suggest names for me. It is 
pretty terrible.

In some cases you can find a proposal for the API on swift-evolution and use it 
as documentation:

https://github.com/apple/swift-evolution/blob/master/proposals/0088-libdispatch-for-swift3.md
 



___

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

Re: Swift DispatchQueue docs?

2016-11-21 Thread Rick Mann
Hmm. If you scroll down in the generated Swift interface file, you get a bunch 
of block comments from the C version. Sigh.

> On Nov 21, 2016, at 13:48 , Rick Mann  wrote:
> 
> They seem pretty terrible. No explanation of any of the things.
> 
> The GCD guide from Apple is very old, with out-of-date info, and lacking info 
> on the newer things (AFAICT).
> 
> Is there a way to look at the C header files for GCD? I tried opening 
> Dispatch.h, and Xcode is stuck "Generating Interface…", presumably a Swift 
> interface I don't want to see.
> 
> -- 
> Rick Mann
> rm...@latencyzero.com
> 
> 
> 
> ___
> 
> 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/rmann%40latencyzero.com
> 
> This email sent to rm...@latencyzero.com


-- 
Rick Mann
rm...@latencyzero.com



___

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