Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNathan Radmall
1,546 PointsNot sure what I'm missing here.
This chunk of code is giving me a hard time.
class NetworkOperation {
lazy var config: NSURLSessionConfiguration = NSURLSessionConfiguration.defaultSessionConfiguration()
lazy var session: NSURLSession = NSURLSession(configuration: self.config)
let queryURL = NSURL
typealias JSONDictionary = ([String: AnyObject]?) -> Void
init(url: NSURL){
self.queryURL = url
}
Why is Xcode wanting me to put parenthesis after "let queryURL = NSURL"?
And even when I do that, I'm getting the error, "Cannot assign to 'querryURL' in 'self'"
Nathan Radmall
1,546 PointsYou were so right. Thank you good sir.
James Hoffman
6,354 PointsJames Hoffman
6,354 PointsI believe you meant to write let queryURL : NSURL.