https://developer.apple.com/library/mac ... onHandler:
Code: Select all
- (void)URLSession:(NSURLSession *)session
task:(NSURLSessionTask *)task
willPerformHTTPRedirection:(NSHTTPURLResponse *)response
newRequest:(NSURLRequest *)request
completionHandler:(void (^)(NSURLRequest *))completionHandler
I haven't found an example of how to call blocks provided by the AppKit.
Anyone can help? Thank you in advance.