diff --git a/Classes/PropertyView/SBMovieViewController.m b/Classes/PropertyView/SBMovieViewController.m index 1f00c7e..1e1f116 100755 --- a/Classes/PropertyView/SBMovieViewController.m +++ b/Classes/PropertyView/SBMovieViewController.m @@ -659,10 +659,11 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn for (index = [itemIndexes lastIndex]; index != NSNotFound; index = [itemIndexes indexLessThanIndex:index]) { NSArray *representations = [[[metadata.artworks objectAtIndex:index] image] representations]; - NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations - usingType:NSTIFFFileType properties:nil]; - - [pasteboard setData:bitmapData forType:NSTIFFPboardType]; + if (representations) { + NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations + usingType:NSTIFFFileType properties:@{}]; + [pasteboard setData:bitmapData forType:NSTIFFPboardType]; + } } return [itemIndexes count]; diff --git a/Classes/SBOptionsViewController.m b/Classes/SBOptionsViewController.m index cd909c9..8119ea4 100644 --- a/Classes/SBOptionsViewController.m +++ b/Classes/SBOptionsViewController.m @@ -178,7 +178,7 @@ static void *SBOptionsViewContex = &SBOptionsViewContex; panel.canCreateDirectories = YES; [panel setPrompt:@"Select"]; - [panel beginSheetModalForWindow:nil completionHandler:^(NSInteger result) { + [panel beginWithCompletionHandler:^(NSInteger result) { if (result == NSFileHandlingPanelOKButton) { NSMenuItem *folderItem = [self prepareDestPopupItem:[panel URL]]; diff --git a/Classes/SBQueue.h b/Classes/SBQueue.h index 5f4e330..4721dfc 100644 --- a/Classes/SBQueue.h +++ b/Classes/SBQueue.h @@ -31,7 +31,7 @@ extern NSString *SBQueueCancelledNotification; SBQueueItem *_currentItem; NSUInteger _currentIndex; - NSMutableArray *_items; + NSMutableArray *_items; NSURL *_URL; IOPMAssertionID _assertionID; diff --git a/Classes/SBQueueController.m b/Classes/SBQueueController.m index 3aa863f..cedc85a 100755 --- a/Classes/SBQueueController.m +++ b/Classes/SBQueueController.m @@ -214,8 +214,11 @@ static void *SBQueueContex = &SBQueueContex; MP42File *mp4 = item.mp4File; dispatch_sync(dispatch_get_main_queue(), ^{ - SBDocument *doc = [[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:NULL]; - [doc setMp4File:mp4]; + SBDocument *doc = [[SBDocument alloc] initWithMP4:mp4 error:NULL]; + [[NSDocumentController sharedDocumentController] addDocument:doc]; + [doc makeWindowControllers]; + [doc showWindows]; + [doc release]; [self.itemPopover close]; @@ -599,7 +602,7 @@ static void *SBQueueContex = &SBQueueContex; - (IBAction)showInFinder:(id)sender { SBQueueItem *item = [self.queue itemAtIndex:[_tableView clickedRow]]; - [[NSWorkspace sharedWorkspace] selectFile:[item.destURL path] inFileViewerRootedAtPath:nil]; + [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[item.destURL]]; } - (IBAction)removeSelectedItems:(id)sender { diff --git a/Classes/SBQueueItem.m b/Classes/SBQueueItem.m index 57625b9..ecd0393 100755 --- a/Classes/SBQueueItem.m +++ b/Classes/SBQueueItem.m @@ -54,7 +54,7 @@ - (instancetype)initWithURL:(NSURL *)URL { self = [self init]; if (self) { - _fileURL = [URL retain]; + _fileURL = [[URL filePathURL] retain]; NSFileManager *fileManager = [NSFileManager defaultManager]; unsigned long long originalFileSize = [[[fileManager attributesOfItemAtPath:[_fileURL path] error:nil] valueForKey:NSFileSize] unsignedLongLongValue];