File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -988,11 +988,8 @@ - (void)updateProgress:(NSTimer *)updatedTimer {
988
988
989
989
- (void )openAudioFilesPanelDidEnd : (NSOpenPanel *)panel returnCode : (NSInteger )returnCode contextInfo : (void *)contextInfo {
990
990
if (returnCode == NSModalResponseOK ) {
991
- NSArray *files = [panel URLs ];
991
+ NSArray < NSURL *> *files = [panel URLs ];
992
992
if (files) {
993
- // SBImportOperation takes NSStrings, not URLs, so map
994
- files = [files valueForKey: @" path" ];
995
-
996
993
[panel orderOut: self ];
997
994
[NSApp endSheet: panel];
998
995
@@ -1006,7 +1003,7 @@ - (void)openAudioFilesPanelDidEnd:(NSOpenPanel *)panel returnCode:(NSInteger)ret
1006
1003
}
1007
1004
1008
1005
1009
- - (void )importSheetDidEnd : (NSWindow *)sheet returnCode : (NSInteger )returnCode contextInfo : (NSArray *)choosedFiles {
1006
+ - (void )importSheetDidEnd : (NSWindow *)sheet returnCode : (NSInteger )returnCode contextInfo : (NSArray <NSURL*> *)choosedFiles {
1010
1007
1011
1008
if (returnCode == NSAlertFirstButtonReturn ) {
1012
1009
if (choosedFiles != nil ) {
@@ -1280,7 +1277,7 @@ - (void)displayViewControllerForResource:(SBResource *)resource {
1280
1277
}
1281
1278
1282
1279
1283
- - (BOOL )openImportAlert : (NSWindow *)sender files : (NSArray *)files {
1280
+ - (BOOL )openImportAlert : (NSWindow *)sender files : (NSArray <NSURL*> *)files {
1284
1281
NSAlert *importAlert = [[NSAlert alloc ] init ];
1285
1282
[importAlert setMessageText: @" Do you want to copy the imported audio files?" ];
1286
1283
[importAlert setInformativeText: @" The files will copied into the library directory, or have the new library items link to the original files." ];
You can’t perform that action at this time.
0 commit comments