Fix depreciation warnings.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -842,7 +842,7 @@ static NSDateFormatter *_formatter;
|
||||
panel.allowedFileTypes = @[@"public.image"];
|
||||
|
||||
[panel beginSheetModalForWindow:self.view.window completionHandler:^(NSInteger result) {
|
||||
if (result == NSFileHandlingPanelOKButton) {
|
||||
if (result == NSModalResponseOK) {
|
||||
[self addArtworks:panel.URLs];
|
||||
}
|
||||
}];
|
||||
|
||||
@@ -592,7 +592,7 @@ static void *SBQueueContex = &SBQueueContex;
|
||||
panel.allowedFileTypes = [MP42FileImporter supportedFileFormats];
|
||||
|
||||
[panel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result) {
|
||||
if (result == NSFileHandlingPanelOKButton) {
|
||||
if (result == NSModalResponseOK) {
|
||||
[self addItemsFromURLs:panel.URLs atIndex:self.queue.count];
|
||||
}
|
||||
}];
|
||||
|
||||
Reference in new issue
Block a user