How are you supposed to do simple things like this, succinctly?

    let url = NSURL(string: "<some url>")
    let req = NSURLRequest(URL: url)
    self.webView.loadRequest(req)

This, obviously, doesn't work, since the results are optionals, and so need to 
be unwrapped. But it gets rapidly ridiculous with a bunch of nested if-lets 
(imagine you had more than just two operations to get from here to there). 
What's the right way to do this?

-- 
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

Reply via email to