Guest

Untitled

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