Changeset 622 for trunk/Cocoa/Pester
- Timestamp:
- 03/02/10 08:04:08 (15 years ago)
- Location:
- trunk/Cocoa/Pester/Source
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source/PSAlarmSetController.h
r579 r622 15 15 @class NJRValidatingField; 16 16 @class NJRVoicePopUpButton; 17 @class PSDateFieldEditor; 17 18 18 19 @interface PSAlarmSetController : NSWindowController <NSUserInterfaceValidations> { … … 50 51 NSTimer *updateTimer; 51 52 PSAlarm *alarm; 53 PSDateFieldEditor *dateFieldEditor; 52 54 BOOL isInterval; 53 55 } -
trunk/Cocoa/Pester/Source/PSAlarmSetController.m
r621 r622 25 25 26 26 #import "PSAlerts.h" 27 #import "PSDateFieldEditor.h" 27 28 #import "PSDockBounceAlert.h" 28 29 #import "PSScriptAlert.h" … … 113 114 [voice setDelegate: self]; // XXX why don't we do this in IB? It should use the accessor... 114 115 [wakeUp setEnabled: [PSPowerManager autoWakeSupported]]; 116 117 dateFieldEditor = [[PSDateFieldEditor alloc] init]; 118 [dateFieldEditor setFieldEditor: YES]; 119 [dateFieldEditor setDelegate: timeDate]; 115 120 116 121 // XXX workaround for 10.1.x and 10.2.x bug which sets the first responder to the wrong field alternately, but it works if I set the initial first responder to nil... go figure. … … 605 610 [completions removeObjectAtIndex: i]; 606 611 } 607 NSLog(@"%@ %d %@", partialMatch, partialLength, completions);608 612 return [completions autorelease]; 609 613 } 610 614 611 615 @end 616 617 @implementation PSAlarmSetController (NSWindowDelegate) 618 619 - (id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)client; 620 { 621 if (client == timeDate) 622 return dateFieldEditor; 623 624 return nil; 625 } 626 627 @end 628 612 629 613 630 @implementation PSAlarmSetController (NSWindowNotifications) … … 629 646 - (void)controlTextDidEndEditing:(NSNotification *)notification; 630 647 { 631 NSControl *control = [notification object]; 632 633 if (control != timeOfDay) 648 if ([notification object] != timeOfDay) 634 649 return; 635 650 … … 683 698 } 684 699 685 // XXX need to override NSTextView; when completing with space or tab, we don't get a selector, which causes usability problems with tab and bugs with space686 700 - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)commandSelector; 687 701 { -
trunk/Cocoa/Pester/Source/Pester.xcodeproj/project.pbxproj
r619 r622 15 15 E17562720CF8C53F00FC5057 /* Sparkle.framework in Copy Sparkle.framework */ = {isa = PBXBuildFile; fileRef = E17562610CF8C50B00FC5057 /* Sparkle.framework */; }; 16 16 E17CA9AB0CF7F8CB00018B34 /* Manip.pm in Copy Perl Modules */ = {isa = PBXBuildFile; fileRef = E17CA9A90CF7F8C200018B34 /* Manip.pm */; }; 17 E18E8230113CC5C300687310 /* PSDateFieldEditor.m in Sources */ = {isa = PBXBuildFile; fileRef = E18E822F113CC5C300687310 /* PSDateFieldEditor.m */; }; 17 18 E1985796104F68EC0082AC3E /* ParseDate.m in Sources */ = {isa = PBXBuildFile; fileRef = E19CC53E0CFDE48C0079DCFC /* ParseDate.m */; }; 18 19 E1985798104F68EC0082AC3E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29B97325FDCFA39411CA2CEA /* Foundation.framework */; }; … … 230 231 E18DAAEB0442CC3E00050002 /* NJRSoundManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NJRSoundManager.m; sourceTree = "<group>"; }; 231 232 E18DAAEE0442D02500050002 /* CoreAudio.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreAudio.framework; path = /System/Library/Frameworks/CoreAudio.framework; sourceTree = "<absolute>"; }; 233 E18E822E113CC5C300687310 /* PSDateFieldEditor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PSDateFieldEditor.h; sourceTree = "<group>"; }; 234 E18E822F113CC5C300687310 /* PSDateFieldEditor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PSDateFieldEditor.m; sourceTree = "<group>"; }; 232 235 E198579D104F68EC0082AC3E /* libParseDate-10.6.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libParseDate-10.6.dylib"; sourceTree = BUILT_PRODUCTS_DIR; }; 233 236 E19CC5220CFDE3350079DCFC /* libParseDate-10.4.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "libParseDate-10.4.dylib"; sourceTree = BUILT_PRODUCTS_DIR; }; … … 687 690 F5F19871036B822E01EB0372 /* NJRVoicePopUpButton.h */, 688 691 F5F19870036B822E01EB0372 /* NJRVoicePopUpButton.m */, 692 E18E822E113CC5C300687310 /* PSDateFieldEditor.h */, 693 E18E822F113CC5C300687310 /* PSDateFieldEditor.m */, 689 694 ); 690 695 name = Views; … … 950 955 E15044670CFCDC7E00DE47E9 /* NJRValidatingField.m in Sources */, 951 956 E12CBFD310CC310800159E88 /* NJRMenuSlider.m in Sources */, 957 E18E8230113CC5C300687310 /* PSDateFieldEditor.m in Sources */, 952 958 ); 953 959 runOnlyForDeploymentPostprocessing = 0;
Note:
See TracChangeset
for help on using the changeset viewer.