Changeset 2836

Show
Ignore:
Timestamp:
05/17/05 17:36:11 (3 years ago)
Author:
morris
Message:

Use custom dragging to get window up in the menubar

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPUMonitor/trunk/CPUController.h

    r2834 r2836  
    3636 
    3737 
    38 @class CPUFloatingView, CPUExpandedView; 
     38@class CPUPanel, CPUFloatingView, CPUExpandedView; 
    3939 
    4040@interface CPUController : NSObject { 
     
    5757        IBOutlet NSImageView                            *_standardImageView; 
    5858 
    59         NSPanel                                                               *_floatingPanel; 
     59        CPUPanel                                                      *_floatingPanel; 
    6060        CPUFloatingView                                         *_floatingView; 
    6161         
  • CPUMonitor/trunk/CPUController.m

    r2834 r2836  
    3131#import "CPUExpandedView.h" 
    3232#import "CPUFloatingView.h" 
     33#import "CPUPanel.h" 
    3334#import "CPUSettings.h" 
    3435 
     
    264265                 
    265266                _floatingView = [[CPUFloatingView alloc] initWithFrame:frame isHorizontal:horizontal]; 
    266                 _floatingPanel = [[NSPanel alloc] initWithContentRect:[_floatingView frame] 
     267                _floatingPanel = [[CPUPanel alloc] initWithContentRect:[_floatingView frame] 
    267268                                                                                                        styleMask:NSBorderlessWindowMask 
    268269                                                                                                          backing:NSBackingStoreBuffered 
  • CPUMonitor/trunk/CPUMonitor.xcode/project.pbxproj

    r2834 r2836  
    1616                                A51B24520820132A00D76064, 
    1717                                A51B24530820132A00D76064, 
     18                                77CDAD70083A3F9D003BE654, 
     19                                77CDAD6F083A3F9D003BE654, 
    1820                                A51B258D082020C700D76064, 
    1921                                A51B258C082020C700D76064, 
     
    346348                77CDAD11083A3AAF003BE654 = { 
    347349                        fileRef = 77CDAD0F083A3AAF003BE654; 
     350                        isa = PBXBuildFile; 
     351                        settings = { 
     352                        }; 
     353                }; 
     354                77CDAD6F083A3F9D003BE654 = { 
     355                        fileEncoding = 4; 
     356                        isa = PBXFileReference; 
     357                        lastKnownFileType = sourcecode.c.h; 
     358                        path = CPUPanel.h; 
     359                        refType = 4; 
     360                        sourceTree = "<group>"; 
     361                }; 
     362                77CDAD70083A3F9D003BE654 = { 
     363                        fileEncoding = 4; 
     364                        isa = PBXFileReference; 
     365                        lastKnownFileType = sourcecode.c.objc; 
     366                        path = CPUPanel.m; 
     367                        refType = 4; 
     368                        sourceTree = "<group>"; 
     369                }; 
     370                77CDAD72083A3F9D003BE654 = { 
     371                        fileRef = 77CDAD70083A3F9D003BE654; 
    348372                        isa = PBXBuildFile; 
    349373                        settings = { 
     
    451475                                A51B24570820132A00D76064, 
    452476                                A51B258E082020C700D76064, 
     477                                77CDAD72083A3F9D003BE654, 
    453478                        ); 
    454479                        isa = PBXSourcesBuildPhase;