> On Jun 29, 2015, at 3:53 PM, Rick Mann <rm...@latencyzero.com> wrote: > > The compiler's message was, "Could not find an overload for 'init' that > accepts the supplied arguments." Could it instead say "NSURLRequst.init(URL:) > does not return Optional type"?
The error message looks correct to me — it's complaining about passing the variable ‘url’ (an NSURL?) to the NSURLRequest initializer (which takes a non-optional NSURL.) I don’t see any reason the compiler would complain about the return type of NSURLRequest.init, since all you’re doing is assigning it to a constant without giving a type. —Jens _______________________________________________ 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