title: Getting error using CFTypeRef with ARC
body: <p>I basically followed <a href="http://josebolanos.wordpress.com/2012/03/16/core-data-passwords-in-keychain/" rel="nofollow noreferrer">this tutorial</a>, and soon realized the project wouldn't compile because I was using ARC.  I managed to suppress all the errors using <code>__bridge</code> (>.>) but I am still getting one error message, and I managed to read <a href="https://stackoverflow.com/questions/7827730/iphone-fetch-data-dictionary-from-keychain">this stack question</a>, but didn't understand how to apply the resolution to my problem.</p>
  
  <p>Basically the method that is giving me the problem looks like this:</p>
  
  <pre><code>+ (NSString*)getPasswordForKey:(NSString*)aKey
  {
   NSString *password = nil;
  
   NSMutableDictionary *searchDictionary = [self dictionaryForKey:aKey];
  
   [searchDictionary setObject:(__bridge id)kSecMatchLimitOne forKey:(__bridge id)kSecMatchLimit];
   [searchDictionary setObject:(id)kCFBooleanTrue forKey:(__bridge id)kSecReturnData];
  
  
   NSData *result = nil;
   SecItemCopyMatching((__bridge CFDictionaryRef)searchDictionary, (CFTypeRef *)&amp;result);
  
   if (result)
   {
      password = [[NSString alloc] initWithData:result encoding:NSUTF8StringEncoding];
  
   }
   return password;
  } 
  </code></pre>