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