disable QuickLook button/menu item on 10.6

This commit is contained in:
Mitchell Livingston 2009-09-07 15:07:00 +00:00
parent 61caf165ab
commit ebb40e2ab2
1 changed files with 5 additions and 0 deletions

View File

@ -3252,6 +3252,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[item setTarget: self]; [item setTarget: self];
[item setAction: @selector(toggleQuickLook:)]; [item setAction: @selector(toggleQuickLook:)];
[item setAutovalidates: NO]; [item setAutovalidates: NO];
[item setEnabled: [NSApp isOnSnowLeopardOrBetter]];
return item; return item;
} }
@ -3716,6 +3717,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
return YES; return YES;
} }
//quick look only works on 10.6
if (action == @selector(toggleQuickLook:))
return [NSApp isOnSnowLeopardOrBetter];
return YES; return YES;
} }