Changeset 64
- Timestamp:
- 01/07/03 08:31:52 (22 years ago)
- Location:
- trunk/Cocoa/Pester/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarms.m
r61 r64 37 37 + (void)setUp; 38 38 { 39 [PSTimer setUp]; 39 40 if (PSAlarmsAllAlarms == nil) { 40 41 NSDictionary *plAlarms = [[NSUserDefaults standardUserDefaults] objectForKey: PSAllAlarms]; … … 45 46 } 46 47 [PSAlarmsAllAlarms _updateNextAlarm]; // only generate notifications after singleton established 47 [PSTimer setUp];48 48 } 49 49 } -
trunk/Cocoa/Pester/Source/PSTimer.m
r61 r64 106 106 - (void)_invalidate; 107 107 { 108 isValid = NO; 109 [[self class] _timerDeleted: self]; 108 if (isValid) { 109 isValid = NO; 110 [[self class] _timerDeleted: self]; 111 } 110 112 } 111 113 … … 218 220 if (PSTimerOnWake != nil) { 219 221 NSDate *date = [PSTimerOnWake fireDate]; 220 NSLog(@"%lf sec remain until alarm", [date timeIntervalSinceNow]);222 // NSLog(@"%lf sec remain until alarm", [date timeIntervalSinceNow]); 221 223 if ([date timeIntervalSinceNow] > 30) { 222 NSLog(@"going to sleep, setting timer %@", PSTimerOnWake);224 // NSLog(@"going to sleep, setting timer %@", PSTimerOnWake); 223 225 [PSPowerManager setWakeTime: [[PSTimerOnWake fireDate] addTimeInterval: -15]]; 224 226 return YES; 225 227 } else { 226 NSLog(@"not setting timer, will attempt to prevent idle sleep");228 // NSLog(@"not setting timer, will attempt to prevent idle sleep"); 227 229 return NO; 228 230 } -
trunk/Cocoa/Pester/Source/Pester.pbproj/nicholas.pbxuser
r63 r64 22 22 ); 23 23 perUserDictionary = { 24 PBXPerProjectTemplateStateSaveDate = 63613638; 24 PBXPerProjectTemplateStateSaveDate = 63616518; 25 "PBXTemplateGeometry-64ABBB4501FA494900185B06" = { 26 ContentSize = "{968, 658}"; 27 LeftSlideOut = { 28 ActiveTab = 0; 29 ActiveTabName = PBXGroupTreeModule; 30 Collapsed = NO; 31 Frame = "{{0, 23}, {968, 635}}"; 32 Split0 = { 33 Collapsed = NO; 34 Frame = "{{279, 0}, {689, 635}}"; 35 Split0 = { 36 Frame = "{{0, 0}, {689, 635}}"; 37 }; 38 SplitCount = 1; 39 Tab0 = { 40 Frame = "{{0, 0}, {681, 289}}"; 41 }; 42 Tab1 = { 43 Debugger = { 44 Collapsed = NO; 45 Frame = "{{0, 0}, {681, 150}}"; 46 Split0 = { 47 Frame = "{{0, 24}, {681, 126}}"; 48 Split0 = { 49 Frame = "{{0, 0}, {333, 126}}"; 50 }; 51 Split1 = { 52 DebugVariablesTableConfiguration = ( 53 Name, 54 123, 55 Value, 56 85, 57 Summary, 58 105.123, 59 ); 60 Frame = "{{342, 0}, {339, 126}}"; 61 }; 62 SplitCount = 2; 63 }; 64 SplitCount = 1; 65 Tab0 = { 66 Frame = "{{0, 0}, {100, 50}}"; 67 }; 68 Tab1 = { 69 Frame = "{{0, 0}, {100, 50}}"; 70 }; 71 TabCount = 2; 72 TabsVisible = YES; 73 }; 74 Frame = "{{0, 0}, {681, 120}}"; 75 LauncherConfigVersion = 7; 76 }; 77 Tab2 = { 78 Frame = "{{0, 0}, {681, 234}}"; 79 LauncherConfigVersion = 3; 80 Runner = { 81 Frame = "{{0, 0}, {681, 234}}"; 82 }; 83 }; 84 Tab3 = { 85 BuildMessageFrame = "{{0, 0}, {683, 205}}"; 86 BuildTranscriptFrame = "{{0, 214}, {683, 2}}"; 87 BuildTranscriptFrameExpanded = YES; 88 Frame = "{{0, 0}, {681, 238}}"; 89 }; 90 Tab4 = { 91 Frame = "{{0, 0}, {612, 295}}"; 92 }; 93 TabCount = 5; 94 TabsVisible = NO; 95 }; 96 SplitCount = 1; 97 Tab0 = { 98 Frame = "{{0, 0}, {255, 635}}"; 99 GroupTreeTableConfiguration = ( 100 TargetStatusColumn, 101 18, 102 MainColumn, 103 222, 104 ); 105 }; 106 Tab1 = { 107 ClassesFrame = "{{0, 0}, {235, 381}}"; 108 ClassesTreeTableConfiguration = ( 109 PBXBookColumnIdentifier, 110 20, 111 PBXClassColumnIdentifier, 112 192, 113 ); 114 Frame = "{{0, 0}, {233, 635}}"; 115 MembersFrame = "{{0, 390}, {235, 245}}"; 116 MembersTreeTableConfiguration = ( 117 PBXBookColumnIdentifier, 118 20, 119 PBXMethodColumnIdentifier, 120 191, 121 ); 122 }; 123 Tab2 = { 124 Frame = "{{0, 0}, {217, 635}}"; 125 }; 126 Tab3 = { 127 Frame = "{{0, 0}, {239, 554}}"; 128 TargetTableConfiguration = ( 129 ActiveObject, 130 16, 131 ObjectNames, 132 206.296, 133 ); 134 }; 135 Tab4 = { 136 BreakpointsTreeTableConfiguration = ( 137 breakpointColumn, 138 197, 139 enabledColumn, 140 31, 141 ); 142 Frame = "{{0, 0}, {250, 635}}"; 143 }; 144 TabCount = 5; 145 TabsVisible = YES; 146 }; 147 NavBarShownByDefault = YES; 148 StatusViewVisible = YES; 149 Template = 64ABBB4501FA494900185B06; 150 ToolbarVisible = YES; 151 WindowLocation = "{12, 455}"; 152 }; 25 153 PBXWorkspaceContents = ( 26 154 { … … 818 946 }, 819 947 ); 820 PBXWorkspaceStateSaveDate = 6361 3638;948 PBXWorkspaceStateSaveDate = 63616518; 821 949 }; 822 950 perUserProjectItems = { … … 1546 1674 name = "PSAlarms.m: "; 1547 1675 rLen = 0; 1548 rLoc = 44 81;1676 rLoc = 4477; 1549 1677 rType = 0; 1550 1678 vrLen = 1348; … … 1596 1724 name = "PSAlarms.m: 244"; 1597 1725 rLen = 0; 1598 rLoc = 771 9;1726 rLoc = 7715; 1599 1727 rType = 0; 1600 1728 vrLen = 1412; … … 2127 2255 name = "PSAlarms.m: 205"; 2128 2256 rLen = 0; 2129 rLoc = 60 53;2257 rLoc = 6049; 2130 2258 rType = 0; 2131 2259 vrLen = 1441; … … 2537 2665 name = "PSAlarms.m: allAlarms"; 2538 2666 rLen = 0; 2539 rLoc = 44 81;2667 rLoc = 4477; 2540 2668 rType = 0; 2541 2669 vrLen = 1234; … … 3004 3132 name = "PSAlarms.m: 93"; 3005 3133 rLen = 0; 3006 rLoc = 280 8;3134 rLoc = 2804; 3007 3135 rType = 0; 3008 3136 vrLen = 1387; … … 3264 3392 name = "PSAlarms.m: alarm"; 3265 3393 rLen = 0; 3266 rLoc = 44 81;3394 rLoc = 4477; 3267 3395 rType = 0; 3268 3396 vrLen = 1292; … … 3284 3412 name = "PSAlarms.m: init"; 3285 3413 rLen = 0; 3286 rLoc = 420 8;3414 rLoc = 4204; 3287 3415 rType = 0; 3288 3416 vrLen = 1554; … … 3304 3432 name = "PSAlarms.m: init"; 3305 3433 rLen = 0; 3306 rLoc = 420 8;3434 rLoc = 4204; 3307 3435 rType = 0; 3308 3436 vrLen = 1554; … … 3324 3452 name = "PSAlarms.m: dealloc"; 3325 3453 rLen = 0; 3326 rLoc = 43 92;3454 rLoc = 4388; 3327 3455 rType = 0; 3328 3456 vrLen = 1581; … … 3354 3482 name = "PSAlarms.m: _alarmDied:"; 3355 3483 rLen = 0; 3356 rLoc = 44 81;3484 rLoc = 4477; 3357 3485 rType = 0; 3358 3486 vrLen = 1278; … … 3523 3651 name = "PSAlarms.m: alarm"; 3524 3652 rLen = 0; 3525 rLoc = 44 81;3653 rLoc = 4477; 3526 3654 rType = 0; 3527 3655 vrLen = 1228; … … 3543 3671 name = "PSAlarms.m: 169"; 3544 3672 rLen = 11; 3545 rLoc = 482 5;3673 rLoc = 4821; 3546 3674 rType = 0; 3547 3675 vrLen = 1022; … … 3843 3971 name = "PSAlarms.m: 169"; 3844 3972 rLen = 11; 3845 rLoc = 482 5;3973 rLoc = 4821; 3846 3974 rType = 0; 3847 3975 vrLen = 1007; … … 4238 4366 name = "PSAlarms.m: 86"; 4239 4367 rLen = 0; 4240 rLoc = 267 9;4368 rLoc = 2675; 4241 4369 rType = 0; 4242 4370 vrLen = 1369; … … 4416 4544 name = "PSTimer.m: 181"; 4417 4545 rLen = 18; 4418 rLoc = 5 369;4546 rLoc = 5402; 4419 4547 rType = 0; 4420 4548 vrLen = 708; … … 4436 4564 name = "PSTimer.m: 186"; 4437 4565 rLen = 32; 4438 rLoc = 54 13;4566 rLoc = 5446; 4439 4567 rType = 0; 4440 4568 vrLen = 682; … … 4456 4584 name = "PSTimer.m: "; 4457 4585 rLen = 0; 4458 rLoc = 54 45;4586 rLoc = 5478; 4459 4587 rType = 0; 4460 4588 vrLen = 682; … … 4616 4744 name = "PSAlarms.m: 86"; 4617 4745 rLen = 0; 4618 rLoc = 267 9;4746 rLoc = 2675; 4619 4747 rType = 0; 4620 4748 vrLen = 1369; … … 4656 4784 name = "PSTimer.m: setWakeUp:"; 4657 4785 rLen = 9; 4658 rLoc = 54 21;4786 rLoc = 5454; 4659 4787 rType = 0; 4660 4788 vrLen = 690; … … 4696 4824 name = "PSTimer.m: "; 4697 4825 rLen = 0; 4698 rLoc = 66 24;4826 rLoc = 6666; 4699 4827 rType = 0; 4700 4828 vrLen = 1086; … … 4716 4844 name = "PSTimer.m: 147"; 4717 4845 rLen = 0; 4718 rLoc = 4 576;4846 rLoc = 4609; 4719 4847 rType = 0; 4720 4848 vrLen = 1062; … … 4746 4874 name = "PSTimer.m: powerManagerShouldSleep:"; 4747 4875 rLen = 0; 4748 rLoc = 58 41;4876 rLoc = 5874; 4749 4877 rType = 0; 4750 4878 vrLen = 1062; … … 4896 5024 name = "PSAlarms.m: 206"; 4897 5025 rLen = 0; 4898 rLoc = 60 53;5026 rLoc = 6049; 4899 5027 rType = 0; 4900 5028 vrLen = 1340; … … 4926 5054 name = "PSAlarms.m: 48"; 4927 5055 rLen = 0; 4928 rLoc = 14 13;5056 rLoc = 1409; 4929 5057 rType = 0; 4930 5058 vrLen = 1406; … … 5104 5232 name = "PSTimer.m: 217"; 5105 5233 rLen = 0; 5106 rLoc = 59 31;5234 rLoc = 5964; 5107 5235 rType = 0; 5108 5236 vrLen = 1138; … … 5124 5252 name = "PSTimer.m: 217"; 5125 5253 rLen = 0; 5126 rLoc = 59 31;5254 rLoc = 5964; 5127 5255 rType = 0; 5128 5256 vrLen = 1138; … … 5144 5272 name = "PSTimer.m: 224"; 5145 5273 rLen = 0; 5146 rLoc = 63 33;5274 rLoc = 6372; 5147 5275 rType = 0; 5148 5276 vrLen = 1092; … … 6043 6171 name = "PSAlarms.m: setUp"; 6044 6172 rLen = 0; 6045 rLoc = 1 190;6173 rLoc = 1211; 6046 6174 rType = 0; 6047 6175 vrLen = 1371; … … 6221 6349 name = "PSTimer.m: 176"; 6222 6350 rLen = 0; 6223 rLoc = 52 39;6351 rLoc = 5273; 6224 6352 rType = 0; 6225 6353 vrLen = 641; … … 6235 6363 name = "PSTimer.m: 176"; 6236 6364 rLen = 0; 6237 rLoc = 52 39;6365 rLoc = 5273; 6238 6366 rType = 0; 6239 6367 vrLen = 641; … … 6267 6395 isa = PBXTargetBookmark; 6268 6396 trg = 29B97326FDCFA39411CA2CEA; 6269 uiCtxt = {6270 TOCViewDetailVisibleRect = "{{0, 0}, {467, 581}}";6271 TOCViewExpandedItems = (6272 "com.apple.target-editor-pane.settings",6273 "com.apple.target-editor-pane.settings.simple",6274 "com.apple.target-editor-pane.info-plist",6275 "com.apple.target-editor-pane.info-plist.simple",6276 "com.apple.target-editor-pane.buildphases",6277 );6278 TOCViewMasterVisibleRect = "{{0, 0}, {183, 581}}";6279 TOCViewSelectedItems = (6280 "com.apple.target-editor-pane.info-plist",6281 );6282 };6283 6397 }; 6284 6398 E1FCECFD03C972CF001509F3 = { -
trunk/Cocoa/Pester/Source/VERSION
r61 r64 1 1.1b 11 1.1b2
Note:
See TracChangeset
for help on using the changeset viewer.