- if([launchArg length] > 0)
- {
- NSMutableArray *recent = [[[NSUserDefaults standardUserDefaults] objectForKey:@"RecentFiles"] mutableCopy];
- [recent insertObject:[NSDictionary dictionaryWithObjectsAndKeys:launchArg, @"filePath",nil] atindex:0];
- [[NSUserDefaults standardUserDefaults] setObject:recent forKey:@"RecentFiles"];
- [recentTable reloadData];
- }