Changeset 2914
- Timestamp:
- 05/27/05 20:16:51 (4 years ago)
- Files:
-
- ZankaAdditions/trunk/NSCursor-ClosedHandCursor.tiff (added)
- ZankaAdditions/trunk/NSCursor-OpenHandCursor.tiff (moved) (moved from ZankaAdditions/trunk/NSCursor-HandCursor.tiff)
- ZankaAdditions/trunk/NSCursor-ZAAdditions.h (modified) (1 diff)
- ZankaAdditions/trunk/NSCursor-ZAAdditions.m (modified) (2 diffs)
- ZankaAdditions/trunk/ZankaAdditions.xcode/project.pbxproj (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ZankaAdditions/trunk/NSCursor-ZAAdditions.h
r1629 r2914 29 29 @interface NSCursor(ZACursorAdditions) 30 30 31 + (NSCursor *)handCursor; 31 + (NSCursor *)openHandCursor; 32 + (NSCursor *)closedHandCursor; 32 33 33 34 @end ZankaAdditions/trunk/NSCursor-ZAAdditions.m
r1629 r2914 31 31 @implementation NSCursor(ZACursorAdditions) 32 32 33 + (NSCursor *) handCursor {33 + (NSCursor *)openHandCursor { 34 34 static NSCursor *handCursor; 35 35 NSImage *image; … … 37 37 if(!handCursor) { 38 38 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"]]; 40 56 handCursor = [[NSCursor alloc] initWithImage:image hotSpot:NSMakePoint(8.0, 8.0)]; 41 57 [image release]; ZankaAdditions/trunk/ZankaAdditions.xcode/project.pbxproj
r2841 r2914 134 134 77FFC0FD075E121A008ED58A, 135 135 77CDAED6083B3781003BE654, 136 A5E4B36E07A9767E00BD6812, 136 A5E7C97D0847991E00F1E98C, 137 A5E7C97C0847991E00F1E98C, 137 138 A5E4B33107A9752E00BD6812, 138 139 A5E4B33007A9752E00BD6812, … … 542 543 A544C0450758DE5B008446CF, 543 544 A544C0440758DE5B008446CF, 544 A5E4B36F07A9767E00BD6812,545 545 77CDAED8083B3781003BE654, 546 A5E7C97E0847991E00F1E98C, 547 A5E7C97F0847991E00F1E98C, 546 548 ); 547 549 isa = PBXResourcesBuildPhase; … … 2663 2665 }; 2664 2666 }; 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 };2678 2667 A5E4B39A07A9797100BD6812 = { 2679 2668 buildActionMask = 2147483647; … … 3125 3114 }; 3126 3115 }; 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 }; 3127 3142 A5EA54AA075FC0AD0025514A = { 3128 3143 fileEncoding = 4;
