Guest

Untitled

By: a guest on Jan 28th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. if([launchArg length] > 0)
  2. {
  3. [[NSUserDefaults standardUserDefaults]
  4.         setObject:      [[[[NSUserDefaults standardUserDefaults] objectForKey:@"RecentFiles"] mutableCopy]                                      insertObject:[NSDictionary dictionaryWithObjectsAndKeys:launchArg, @"filePath",nil]
  5.                                                         atIndex:0
  6.                                                 ]              
  7.                         forKey: @"RecentFiles"
  8.                 ];
  9.        
  10.                 [recentTable reloadData];
  11.                
  12. }