Skip to content

Commit 27ff092

Browse files
author
undecoded-coder
committed
Replace deprecated NSApplication beginSheet: message in -[AMSProgressBar showAsSheetForWindow:] (not that it seems to ever be called anyways)
1 parent 2eac1e4 commit 27ff092

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

trunk/AMSProgressBar/AMSProgressPanel.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,7 @@ - (void) showAsSheetForWindow:(NSWindow *)parentWindow
328328
self.startTime = [NSDate date]; //right now
329329
runningAsSheet = YES;
330330

331-
[NSApp beginSheet:dialogWindow
332-
modalForWindow:parentWindow
333-
modalDelegate:self
334-
didEndSelector:nil
335-
contextInfo:nil ];
331+
[[NSApp mainWindow] beginSheet:dialogWindow completionHandler:nil];
336332
}
337333

338334

0 commit comments

Comments
 (0)