title: NSURLSession Delegate Queue
body: <p>This seems weird. I can't seem to seem to successfully set an NSURLSession's delegateQueue on creation.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      NSOperationQueue *queue = [[NSOperationQueue alloc] init];
      queue.maxConcurrentOperationCount = 5;
  
      NSLog(@"The queue before: %@", queue);
      NSLog(@"Max op Count before: %i", queue.maxConcurrentOperationCount);
  
      NSURLSession *session = [NSURLSession sessionWithConfiguration:nil
                                                            delegate:self
                                                       delegateQueue:queue];
  
      NSLog(@"The queue after: %@", session.delegateQueue);
      NSLog(@"Max op Count after : %i", session.delegateQueue.maxConcurrentOperationCount);
  }
  </code></pre>
  
  <p>This results in the following output.</p>
  
  <pre><code>The queue before: &lt;NSOperationQueue:   0x16d99160&gt;{name = 'NSOperationQueue 0x16d99160'}
  Max op Count before: 5
  The queue after: &lt;NSOperationQueue: 0x16d77a50&gt;{name = 'NSOperationQueue 0x16d77a50'}
  Max op Count after : 1
  </code></pre>
  
  <p>It looks like my <code>delegateQueue</code> is being ignored. I've tried on the device as well as on the simulator. I've haven't found any documentation which would explain this. Does anyone have any insight?</p>