Changeset 516
- Timestamp:
- 05/25/09 02:40:34 (15 years ago)
- Location:
- trunk/Cocoa/Pester/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/English.lproj/MainMenu.nib/classes.nib
r513 r516 19 19 </dict> 20 20 <dict> 21 <key>CLASS</key> 22 <string>NSDisclosureButtonCell</string> 23 <key>LANGUAGE</key> 24 <string>ObjC</string> 25 <key>SUPERCLASS</key> 26 <string>NSButtonCell</string> 27 </dict> 28 <dict> 21 29 <key>ACTIONS</key> 22 30 <dict> … … 59 67 <string>NSTextField</string> 60 68 <key>bounceDockIcon</key> 61 <string>NSButton </string>69 <string>NSButtonCell</string> 62 70 <key>cancelButton</key> 63 71 <string>NSButton</string> … … 119 127 </dict> 120 128 <dict> 121 <key>CLASS</key>122 <string>NSDisclosureButtonCell</string>123 <key>LANGUAGE</key>124 <string>ObjC</string>125 <key>SUPERCLASS</key>126 <string>NSButtonCell</string>127 </dict>128 <dict>129 129 <key>ACTIONS</key> 130 130 <dict> … … 182 182 <dict> 183 183 <key>CLASS</key> 184 <string>NJRUnfocusableMovieView</string> 185 <key>LANGUAGE</key> 186 <string>ObjC</string> 187 <key>SUPERCLASS</key> 188 <string>NSMovieView</string> 189 </dict> 190 <dict> 191 <key>CLASS</key> 192 <string>NSObject</string> 193 <key>LANGUAGE</key> 194 <string>ObjC</string> 195 </dict> 196 <dict> 197 <key>CLASS</key> 184 198 <string>FirstResponder</string> 185 199 <key>LANGUAGE</key> … … 187 201 <key>SUPERCLASS</key> 188 202 <string>NSObject</string> 189 </dict>190 <dict>191 <key>CLASS</key>192 <string>NJRUnfocusableMovieView</string>193 <key>LANGUAGE</key>194 <string>ObjC</string>195 <key>SUPERCLASS</key>196 <string>NSMovieView</string>197 </dict>198 <dict>199 <key>CLASS</key>200 <string>NSObject</string>201 <key>LANGUAGE</key>202 <string>ObjC</string>203 203 </dict> 204 204 <dict> … … 235 235 <key>SUPERCLASS</key> 236 236 <string>NSObject</string> 237 </dict> 238 <dict> 239 <key>CLASS</key> 240 <string>NSWindow</string> 241 <key>LANGUAGE</key> 242 <string>ObjC</string> 243 <key>SUPERCLASS</key> 244 <string>NSResponder</string> 237 245 </dict> 238 246 <dict> -
trunk/Cocoa/Pester/Source/English.lproj/MainMenu.nib/info.nib
r513 r516 8 8 <string>../Pester.xcodeproj</string> 9 9 <key>IBOldestOS</key> 10 <integer> 5</integer>10 <integer>4</integer> 11 11 <key>IBOpenObjects</key> 12 12 <array> 13 <integer> 2</integer>13 <integer>525</integer> 14 14 </array> 15 15 <key>IBSystem Version</key> -
trunk/Cocoa/Pester/Source/PSDockBounceAlert.m
r53 r516 9 9 #import <AppKit/AppKit.h> 10 10 #import "PSDockBounceAlert.h" 11 #import "PSAlarmAlertController.h" 12 13 #include <Carbon/Carbon.h> 11 14 12 15 static PSDockBounceAlert *PSDockBounceAlertShared; 16 static NMRec nmr; 13 17 14 18 @implementation PSDockBounceAlert … … 16 20 + (PSAlert *)alert; 17 21 { 18 if (PSDockBounceAlertShared == nil) 22 if (PSDockBounceAlertShared == nil) { 19 23 PSDockBounceAlertShared = [[PSDockBounceAlert alloc] init]; 24 25 [[NSNotificationCenter defaultCenter] addObserver: PSDockBounceAlertShared selector: @selector(_stopBouncing) name: PSAlarmAlertStopNotification object: nil]; 26 27 bzero(&nmr, sizeof(nmr)); 28 nmr.nmMark = 1; 29 nmr.qType = nmType; 30 } 31 20 32 return PSDockBounceAlertShared; 21 33 } 22 34 23 + (void)stopBouncing;35 - (void)_stopBouncing; 24 36 { 25 [NSApp cancelUserAttentionRequest: NSInformationalRequest]; 37 if ((void *)nmr.nmRefCon != self) 38 return; 39 40 nmr.nmRefCon = 0; 41 NMRemove(&nmr); 26 42 } 27 43 28 44 - (void)triggerForAlarm:(PSAlarm *)alarm; 29 45 { 30 [NSApp requestUserAttention: NSInformationalRequest]; 31 [[self class] performSelector: @selector(stopBouncing) withObject: nil afterDelay: 1 inModes: [NSArray arrayWithObject: NSDefaultRunLoopMode]]; 46 if (nmr.nmRefCon == 0) { 47 nmr.nmRefCon = (long)self; 48 NMInstall(&nmr); 49 } 50 32 51 [self completedForAlarm: alarm]; 33 52 } … … 35 54 - (NSAttributedString *)actionDescription; 36 55 { 37 return [@"Bounce dock icon" small];56 return [@"Bounce Dock icon" small]; 38 57 } 39 58
Note:
See TracChangeset
for help on using the changeset viewer.