Because we have built our App around the Image Kit framework, we can trash unwanted images with a small amount of our own program code.
In the
BTSWindowController+Importer.m
file, in thesetupBrowser
method, add the following program code to turn animation on for the Image Browser View:- (void) setupBrowser { // Turn on the animation effect [self.m_imageBrowser setAnimates:YES];
In the
BTSWindowController+Importer.m
file, in theIKImageBrowserDataSource
section, add the following program code to delete the selected images:// Delete the selected images - (void) imageBrowser:(IKImageBrowserView *) a_view removeItemsAtIndexes: (NSIndexSet *) a_indexes { // Cache a reference to the default // NSWorkspace object NSWorkspace * l_workspace = [NSWorkspace sharedWorkspace]; // Create an array to hold the deleted // objects NSMutableArray *l_deletedURLs = [[NSMutableArray alloc] init]; // For all...