warnings--
This commit is contained in:
parent
3c05479037
commit
d154c2870d
|
@ -29,6 +29,12 @@
|
|||
#import "Controller.h"
|
||||
#import "InfoWindowController.h"
|
||||
|
||||
@interface QuickLookController (Private)
|
||||
|
||||
- (id) initWithMainController: (Controller *) controller infoController: (InfoWindowController *) infoController;
|
||||
|
||||
@end
|
||||
|
||||
@implementation QuickLookController
|
||||
|
||||
QuickLookController * fQuickLookInstance = nil;
|
||||
|
@ -43,23 +49,6 @@ QuickLookController * fQuickLookInstance = nil;
|
|||
return fQuickLookInstance;
|
||||
}
|
||||
|
||||
- (id) initWithMainController: (Controller *) controller infoController: (InfoWindowController *) infoController
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
fMainController = controller;
|
||||
fInfoController = infoController;
|
||||
|
||||
//load the QuickLook framework and set the delegate, no point on trying this on Tiger
|
||||
//animation types: 0 = none; 1 = fade; 2 = zoom
|
||||
fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
|
||||
if (fQuickLookAvailable)
|
||||
[[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
// This is the QuickLook delegate method
|
||||
// It should return the frame for the item represented by the URL
|
||||
// If an empty frame is returned then the panel will fade in/out instead
|
||||
|
@ -134,3 +123,24 @@ QuickLookController * fQuickLookInstance = nil;
|
|||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation QuickLookController (Private)
|
||||
|
||||
- (id) initWithMainController: (Controller *) controller infoController: (InfoWindowController *) infoController
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
fMainController = controller;
|
||||
fInfoController = infoController;
|
||||
|
||||
//load the QuickLook framework and set the delegate, no point on trying this on Tiger
|
||||
//animation types: 0 = none; 1 = fade; 2 = zoom
|
||||
fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
|
||||
if (fQuickLookAvailable)
|
||||
[[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue