Skip to content

Commit 17b9325

Browse files
committed
Merge pull request #80 from jpetrie/modal-sheet-warnings
Fix beginModalSheetForWindow warning.
2 parents c1d214e + c832b78 commit 17b9325

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/MacVim/MMVimController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,10 +1523,15 @@ - (void)handleShowDialog:(NSDictionary *)attr
15231523
}
15241524
}
15251525

1526+
#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_10
1527+
[alert beginSheetModalForWindow:[windowController window]
1528+
completionHandler: ^(NSModalResponse code) { [self alertDidEnd:alert code:code context:NULL]; }];
1529+
#else
15261530
[alert beginSheetModalForWindow:[windowController window]
15271531
modalDelegate:self
15281532
didEndSelector:@selector(alertDidEnd:code:context:)
15291533
contextInfo:NULL];
1534+
#endif
15301535

15311536
[alert release];
15321537
}

0 commit comments

Comments
 (0)