Re: Simple Swift question
Re: Simple Swift question
- Subject: Re: Simple Swift question
- From: Jens Alfke <email@hidden>
- Date: Mon, 29 Jun 2015 16:30:51 -0700
> On Jun 29, 2015, at 4:23 PM, Rick Mann <email@hidden> wrote:
>
> http://pastebin.com/Q7sBWBnN <http://pastebin.com/Q7sBWBnN>
>
> url is unwrapped already, and I'm (wrongly) trying to unwrap the NSURLRequest. But it's not complaining about the arguments to NSURLRequest.init(URL:).
The error I get with Xcode 7 beta 2 is
error: operand of postfix '?' should have optional type; type is 'NSURLRequest'
if let req = NSURLRequest(URL: url)?
~~~~~~~~~~~~~~~~~~~~~~^
So it looks like this has been fixed already.
—Jens
_______________________________________________
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