Changeset 2914

Show
Ignore:
Timestamp:
05/27/05 20:16:51 (4 years ago)
Author:
morris
Message:

Differentiate between open and closed hand cursors

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ZankaAdditions/trunk/NSCursor-ZAAdditions.h

    r1629 r2914  
    2929@interface NSCursor(ZACursorAdditions) 
    3030 
    31 + (NSCursor *)handCursor; 
     31+ (NSCursor *)openHandCursor; 
     32+ (NSCursor *)closedHandCursor; 
    3233 
    3334@end 
  • ZankaAdditions/trunk/NSCursor-ZAAdditions.m

    r1629 r2914  
    3131@implementation NSCursor(ZACursorAdditions) 
    3232 
    33 + (NSCursor *)handCursor { 
     33+ (NSCursor *)openHandCursor { 
    3434        static NSCursor         *handCursor; 
    3535        NSImage                         *image; 
     
    3737        if(!handCursor) { 
    3838                image = [[NSImage alloc] initWithContentsOfFile: 
    39                         [[ZAObject bundle] pathForResource:@"NSImage-HandCursor" ofType:@"tiff"]]; 
     39                        [[ZAObject bundle] pathForResource:@"NSCursor-OpenHandCursor" ofType:@"tiff"]]; 
     40                handCursor = [[NSCursor alloc] initWithImage:image hotSpot:NSMakePoint(8.0, 8.0)]; 
     41                [image release]; 
     42        } 
     43 
     44        return handCursor; 
     45
     46 
     47 
     48 
     49+ (NSCursor *)closedHandCursor { 
     50        static NSCursor         *handCursor; 
     51        NSImage                         *image; 
     52 
     53        if(!handCursor) { 
     54                image = [[NSImage alloc] initWithContentsOfFile: 
     55                        [[ZAObject bundle] pathForResource:@"NSCursor-ClosedHandCursor" ofType:@"tiff"]]; 
    4056                handCursor = [[NSCursor alloc] initWithImage:image hotSpot:NSMakePoint(8.0, 8.0)]; 
    4157                [image release]; 
  • ZankaAdditions/trunk/ZankaAdditions.xcode/project.pbxproj

    r2841 r2914  
    134134                                77FFC0FD075E121A008ED58A, 
    135135                                77CDAED6083B3781003BE654, 
    136                                 A5E4B36E07A9767E00BD6812, 
     136                                A5E7C97D0847991E00F1E98C, 
     137                                A5E7C97C0847991E00F1E98C, 
    137138                                A5E4B33107A9752E00BD6812, 
    138139                                A5E4B33007A9752E00BD6812, 
     
    542543                                A544C0450758DE5B008446CF, 
    543544                                A544C0440758DE5B008446CF, 
    544                                 A5E4B36F07A9767E00BD6812, 
    545545                                77CDAED8083B3781003BE654, 
     546                                A5E7C97E0847991E00F1E98C, 
     547                                A5E7C97F0847991E00F1E98C, 
    546548                        ); 
    547549                        isa = PBXResourcesBuildPhase; 
     
    26632665                        }; 
    26642666                }; 
    2665                 A5E4B36E07A9767E00BD6812 = { 
    2666                         isa = PBXFileReference; 
    2667                         lastKnownFileType = image.tiff; 
    2668                         path = "NSCursor-HandCursor.tiff"; 
    2669                         refType = 4; 
    2670                         sourceTree = "<group>"; 
    2671                 }; 
    2672                 A5E4B36F07A9767E00BD6812 = { 
    2673                         fileRef = A5E4B36E07A9767E00BD6812; 
    2674                         isa = PBXBuildFile; 
    2675                         settings = { 
    2676                         }; 
    2677                 }; 
    26782667                A5E4B39A07A9797100BD6812 = { 
    26792668                        buildActionMask = 2147483647; 
     
    31253114                        }; 
    31263115                }; 
     3116                A5E7C97C0847991E00F1E98C = { 
     3117                        isa = PBXFileReference; 
     3118                        lastKnownFileType = image.tiff; 
     3119                        path = "NSCursor-OpenHandCursor.tiff"; 
     3120                        refType = 4; 
     3121                        sourceTree = "<group>"; 
     3122                }; 
     3123                A5E7C97D0847991E00F1E98C = { 
     3124                        isa = PBXFileReference; 
     3125                        lastKnownFileType = image.tiff; 
     3126                        path = "NSCursor-ClosedHandCursor.tiff"; 
     3127                        refType = 4; 
     3128                        sourceTree = "<group>"; 
     3129                }; 
     3130                A5E7C97E0847991E00F1E98C = { 
     3131                        fileRef = A5E7C97C0847991E00F1E98C; 
     3132                        isa = PBXBuildFile; 
     3133                        settings = { 
     3134                        }; 
     3135                }; 
     3136                A5E7C97F0847991E00F1E98C = { 
     3137                        fileRef = A5E7C97D0847991E00F1E98C; 
     3138                        isa = PBXBuildFile; 
     3139                        settings = { 
     3140                        }; 
     3141                }; 
    31273142                A5EA54AA075FC0AD0025514A = { 
    31283143                        fileEncoding = 4;