From a8f7ef8a3ab28ed3fbea0204f2828ae8e1574e9d Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 22 Aug 2009 12:59:40 +0000 Subject: [PATCH] disable QuickLook on Snow Leopard, for now --- macosx/QuickLookController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/macosx/QuickLookController.m b/macosx/QuickLookController.m index 336e1c6ff..ff6112692 100644 --- a/macosx/QuickLookController.m +++ b/macosx/QuickLookController.m @@ -146,7 +146,10 @@ QuickLookController * fQuickLookInstance = nil; //load the QuickLook framework and set the delegate //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) [[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self]; }