File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ - (void)showDownloadSavePanelExportingToPDF:(BOOL)isExportingToPDF {
242
242
savePanel.nameFieldStringValue = suggestedName;
243
243
[savePanel beginSheetModalForWindow: [self window ]
244
244
completionHandler: ^(NSInteger result) {
245
- if (result == NSFileHandlingPanelOKButton ) {
245
+ if (result == NSModalResponseOK ) {
246
246
[self downloadFile: file
247
247
isExportingToPDF: isExportingToPDF
248
248
toDestinationURL: savePanel.URL];
@@ -345,7 +345,7 @@ - (IBAction)uploadFileClicked:(id)sender {
345
345
[openPanel beginSheetModalForWindow: [self window ]
346
346
completionHandler: ^(NSInteger result) {
347
347
// Callback.
348
- if (result == NSFileHandlingPanelOKButton ) {
348
+ if (result == NSModalResponseOK ) {
349
349
// The user chose a file and clicked OK.
350
350
//
351
351
// Start uploading (deferred briefly since
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ - (IBAction)downloadFileClicked:(id)sender {
183
183
[savePanel beginSheetModalForWindow: self .window
184
184
completionHandler: ^(NSInteger result) {
185
185
// Callback
186
- if (result == NSFileHandlingPanelOKButton ) {
186
+ if (result == NSModalResponseOK ) {
187
187
NSURL *destinationURL = [savePanel URL ];
188
188
GTLRStorageQuery_ObjectsGet *query =
189
189
[GTLRStorageQuery_ObjectsGet queryForMediaWithBucket: storageObject.bucket
@@ -226,7 +226,7 @@ - (IBAction)downloadFileClicked:(id)sender {
226
226
}
227
227
}];
228
228
}];
229
- } // result == NSFileHandlingPanelOKButton
229
+ } // result == NSModalResponseOK
230
230
}]; // beginSheetModalForWindow:
231
231
}
232
232
@@ -272,7 +272,7 @@ - (IBAction)uploadFileClicked:(id)sender {
272
272
[openPanel beginSheetModalForWindow: self .window
273
273
completionHandler: ^(NSInteger result) {
274
274
// Callback.
275
- if (result == NSFileHandlingPanelOKButton ) {
275
+ if (result == NSModalResponseOK ) {
276
276
// The user chose a file and clicked OK.
277
277
//
278
278
// Start uploading (deferred briefly since
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ - (IBAction)chooseFileClicked:(id)sender {
183
183
[openPanel beginSheetModalForWindow: self .window
184
184
completionHandler: ^(NSInteger result) {
185
185
// Callback
186
- if (result == NSFileHandlingPanelOKButton ) {
186
+ if (result == NSModalResponseOK ) {
187
187
// The user chose a file.
188
188
NSString *path = openPanel.URL .path ;
189
189
self->_uploadPathField .stringValue = path;
You can’t perform that action at this time.
0 commit comments