         self.installImageStubSwitch.enabled = sender.on
         
         let state = sender.on ? "and enabled" : "but disabled"
-        println("Installed (\(state)) stubs: \(OHHTTPStubs.allStubs)")
+        print("Installed (\(state)) stubs: \(OHHTTPStubs.allStubs)")
     }
     
 


        NSURLConnection.sendAsynchronousRequest(req, queue: NSOperationQueue.mainQueue()) { (_, data, _) in
            sender.enabled = true
            let receivedText = NSString(data: data, encoding: NSASCIIStringEncoding)
            self.textView.text = receivedText! as String
        }
    }


        if sender.on {
            // Install
            
            let isImage = { (request: NSURLRequest!) -> ObjCBool in
                let validExtensions: [String] = ["png","jpg","jpeg","gif"]
                let ok = validExtensions.contains(request.URL?.pathExtension ?? "")
                return ObjCBool(ok)
            }
            // - we use a separate block 'isImage' for the 'test' predicate for code readability
            // - we use the "trailing closure" syntax of Swift for convenience
            // - we don't care about the 'request' parameter in the trailing closure so we use '_'
            imageStub = OHHTTPStubs.stubRequestsPassingTest(isImage) { (_:NSURLRequest) -> OHHTTPStubsResponse in
                let stubPath = OHPathForFile("stub.jpg", self.dynamicType)
                return OHHTTPStubsResponse(
                    fileAtPath: stubPath!,
