Fixed warnings
This commit is contained in:
1 parent
f53f64e262
commit
d12e815539
5 files changed
+12
-8
No files matched your search
@@ -659,11 +659,12 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
|
|||||||
|
|
||||||
for (index = [itemIndexes lastIndex]; index != NSNotFound; index = [itemIndexes indexLessThanIndex:index]) {
|
for (index = [itemIndexes lastIndex]; index != NSNotFound; index = [itemIndexes indexLessThanIndex:index]) {
|
||||||
NSArray *representations = [[[metadata.artworks objectAtIndex:index] image] representations];
|
NSArray *representations = [[[metadata.artworks objectAtIndex:index] image] representations];
|
||||||
|
if (representations) {
|
||||||
NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
|
NSData *bitmapData = [NSBitmapImageRep representationOfImageRepsInArray:representations
|
||||||
usingType:NSTIFFFileType properties:nil];
|
usingType:NSTIFFFileType properties:@{}];
|
||||||
|
|
||||||
[pasteboard setData:bitmapData forType:NSTIFFPboardType];
|
[pasteboard setData:bitmapData forType:NSTIFFPboardType];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return [itemIndexes count];
|
return [itemIndexes count];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ static void *SBOptionsViewContex = &SBOptionsViewContex;
|
|||||||
panel.canCreateDirectories = YES;
|
panel.canCreateDirectories = YES;
|
||||||
|
|
||||||
[panel setPrompt:@"Select"];
|
[panel setPrompt:@"Select"];
|
||||||
[panel beginSheetModalForWindow:nil completionHandler:^(NSInteger result) {
|
[panel beginWithCompletionHandler:^(NSInteger result) {
|
||||||
if (result == NSFileHandlingPanelOKButton) {
|
if (result == NSFileHandlingPanelOKButton) {
|
||||||
NSMenuItem *folderItem = [self prepareDestPopupItem:[panel URL]];
|
NSMenuItem *folderItem = [self prepareDestPopupItem:[panel URL]];
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ extern NSString *SBQueueCancelledNotification;
|
|||||||
|
|
||||||
SBQueueItem *_currentItem;
|
SBQueueItem *_currentItem;
|
||||||
NSUInteger _currentIndex;
|
NSUInteger _currentIndex;
|
||||||
NSMutableArray *_items;
|
NSMutableArray<SBQueueItem *> *_items;
|
||||||
NSURL *_URL;
|
NSURL *_URL;
|
||||||
|
|
||||||
IOPMAssertionID _assertionID;
|
IOPMAssertionID _assertionID;
|
||||||
|
|||||||
@@ -214,8 +214,11 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
|
|
||||||
MP42File *mp4 = item.mp4File;
|
MP42File *mp4 = item.mp4File;
|
||||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||||
SBDocument *doc = [[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:YES error:NULL];
|
SBDocument *doc = [[SBDocument alloc] initWithMP4:mp4 error:NULL];
|
||||||
[doc setMp4File:mp4];
|
[[NSDocumentController sharedDocumentController] addDocument:doc];
|
||||||
|
[doc makeWindowControllers];
|
||||||
|
[doc showWindows];
|
||||||
|
[doc release];
|
||||||
|
|
||||||
[self.itemPopover close];
|
[self.itemPopover close];
|
||||||
|
|
||||||
@@ -599,7 +602,7 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
|
|
||||||
- (IBAction)showInFinder:(id)sender {
|
- (IBAction)showInFinder:(id)sender {
|
||||||
SBQueueItem *item = [self.queue itemAtIndex:[_tableView clickedRow]];
|
SBQueueItem *item = [self.queue itemAtIndex:[_tableView clickedRow]];
|
||||||
[[NSWorkspace sharedWorkspace] selectFile:[item.destURL path] inFileViewerRootedAtPath:nil];
|
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[item.destURL]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction)removeSelectedItems:(id)sender {
|
- (IBAction)removeSelectedItems:(id)sender {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
- (instancetype)initWithURL:(NSURL *)URL {
|
- (instancetype)initWithURL:(NSURL *)URL {
|
||||||
self = [self init];
|
self = [self init];
|
||||||
if (self) {
|
if (self) {
|
||||||
_fileURL = [URL retain];
|
_fileURL = [[URL filePathURL] retain];
|
||||||
|
|
||||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||||
unsigned long long originalFileSize = [[[fileManager attributesOfItemAtPath:[_fileURL path] error:nil] valueForKey:NSFileSize] unsignedLongLongValue];
|
unsigned long long originalFileSize = [[[fileManager attributesOfItemAtPath:[_fileURL path] error:nil] valueForKey:NSFileSize] unsignedLongLongValue];
|
||||||
|
|||||||
Reference in new issue
Block a user