Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 16th, 2012  |  syntax: None  |  size: 0.23 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. NSMutableDictionary *userInfo = [NSMutableDictionary dictionary];
  2. [userInfo setObject:@"You are not authenticated." forKey:NSLocalizedDescriptionKey];
  3. NSError *error = [NSError errorWithDomain:@"mydomain" code:0 userInfo:userInfo];