disable QuickLook on Snow Leopard, for now
This commit is contained in:
parent
88d6ad318a
commit
a8f7ef8a3a
|
@ -146,7 +146,10 @@ QuickLookController * fQuickLookInstance = nil;
|
||||||
|
|
||||||
//load the QuickLook framework and set the delegate
|
//load the QuickLook framework and set the delegate
|
||||||
//animation types: 0 = none; 1 = fade; 2 = zoom
|
//animation types: 0 = none; 1 = fade; 2 = zoom
|
||||||
fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
|
//disable on Snow Leopard for now
|
||||||
|
const NSInteger appKitVersionNumber10_5 = 949;
|
||||||
|
fQuickLookAvailable = floor(NSAppKitVersionNumber) <= appKitVersionNumber10_5
|
||||||
|
&& [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
|
||||||
if (fQuickLookAvailable)
|
if (fQuickLookAvailable)
|
||||||
[[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
|
[[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue