Changeset 5877


Ignore:
Timestamp:
May 21, 2008, 4:14:44 PM (14 years ago)
Author:
livings124
Message:

warnings--

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/QuickLookController.m

    r5873 r5877  
    3030#import "InfoWindowController.h"
    3131
     32@interface QuickLookController (Private)
     33
     34- (id) initWithMainController: (Controller *) controller infoController: (InfoWindowController *) infoController;
     35
     36@end
     37
    3238@implementation QuickLookController
    3339
     
    4248{
    4349    return fQuickLookInstance;
    44 }
    45 
    46 - (id) initWithMainController: (Controller *) controller infoController: (InfoWindowController *) infoController
    47 {
    48     if ((self = [super init]))
    49     {
    50         fMainController = controller;
    51         fInfoController = infoController;
    52        
    53         //load the QuickLook framework and set the delegate, no point on trying this on Tiger
    54         //animation types: 0 = none; 1 = fade; 2 = zoom
    55         fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
    56         if (fQuickLookAvailable)
    57             [[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
    58     }
    59    
    60     return self;
    6150}
    6251
     
    135124
    136125@end
     126
     127@implementation QuickLookController (Private)
     128
     129- (id) initWithMainController: (Controller *) controller infoController: (InfoWindowController *) infoController
     130{
     131    if ((self = [super init]))
     132    {
     133        fMainController = controller;
     134        fInfoController = infoController;
     135       
     136        //load the QuickLook framework and set the delegate, no point on trying this on Tiger
     137        //animation types: 0 = none; 1 = fade; 2 = zoom
     138        fQuickLookAvailable = [[NSBundle bundleWithPath: @"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load];
     139        if (fQuickLookAvailable)
     140            [[[QLPreviewPanel sharedPreviewPanel] windowController] setDelegate: self];
     141    }
     142   
     143    return self;
     144}
     145
     146@end
Note: See TracChangeset for help on using the changeset viewer.