title: NSURL getResourceValue in swift
body: <p>Having trouble figuring out how to make the following call in swift:</p>
  
  <pre><code>var anyError: NSError? = nil
  var rsrc: NSNumber? = nil
  var success = url.getResourceValue(&amp;rsrc, forKey:NSURLIsUbiquitousItemKey, error:&amp;anyError)
  </code></pre>
  
  <p>The above does not compile:</p>
  
  <pre><code>Cannot convert the expression's type 'Bool' to type 'inout Bool'
  </code></pre>
  
  <p>So I tried this:</p>
  
  <pre><code>var anyError: NSError? = nil
  var rsrc: AutoreleasingUnsafePointer&lt;AnyObject?&gt; = nil
  var success = url.getResourceValue(rsrc, forKey:NSURLIsUbiquitousItemKey, error:&amp;anyError)
  </code></pre>
  
  <p>but this generates <code>EXC_BAD_ACCESS</code> runtime error.</p>
  
  <p>How do I pass in the expected first arg as <code>AutoreleasingUnsafePointer&lt;AnyObject?&gt;</code> (which  should point to a boolean NSNumber according to doc), and then be able to check its expected Bool value ?</p>