• 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: Simple Swift question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Simple Swift question
      • From: Rick Mann <email@hidden>
    • Re: Simple Swift question
      • From: Rick Mann <email@hidden>
References: 
 >Simple Swift question (From: Rick Mann <email@hidden>)
 >Re: Simple Swift question (From: Greg Parker <email@hidden>)
 >Re: Simple Swift question (From: Rick Mann <email@hidden>)
 >Re: Simple Swift question (From: Jens Alfke <email@hidden>)
 >Re: Simple Swift question (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Why would scroll events not arrive?
  • Next by Date: Re: Simple Swift question
  • Previous by thread: Re: Simple Swift question
  • Next by thread: Re: Simple Swift question
  • Index(es):
    • Date
    • Thread