mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-14 10:05:43 +01:00
0c04c6d83c
- Retro compatibility since OS X Maveriks (10.9). - Search update ability of Clover.app. - Auto mount of the selected ESP. - After the installation, if the target is an EFI system partition, that partition will be umounted. - French translation by Ellibz. - Code corrections and improvements.
26 lines
604 B
Objective-C
26 lines
604 B
Objective-C
//
|
|
// NSWindowFix.m
|
|
// Clover
|
|
//
|
|
// Created by vector sigma on 29/11/2019.
|
|
// Copyright © 2019 CloverHackyColor. All rights reserved.
|
|
//
|
|
|
|
#import "NSWindowFix.h"
|
|
|
|
@implementation NSWindow (popoverFix)
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation"
|
|
- (BOOL)canBecomeKeyWindow {
|
|
/*
|
|
if (floor(kCFCoreFoundationVersionNumber) < kCFCoreFoundationVersionNumber10_11
|
|
&& [[self className] isEqualToString:@"NSStatusBarWindow"]) {
|
|
return YES;
|
|
}
|
|
return [self canBecomeKeyWindow];
|
|
*/
|
|
return YES;
|
|
}
|
|
#pragma clang diagnostic pop
|
|
@end
|