Ignore:
Timestamp:
11/10/02 11:14:59 (22 years ago)
Author:
Nicholas Riley
Message:

Pester 1.1a2.

English.lproj/Credits.html: Fixed some HTML formatting issues, added Ben Hines to credits (thanks for helping out with 1.1a1 testing!)

English.lproj/InfoPlist.strings: Updated for 1.1a2.

English.lproj/MainMenu.nib: Reconnected initialFirstResponder outlet on the window; somehow it became disconnected. Fixed keyboard navigation loop. Removed formatters from date/time fields which were causing crashes on launch on 10.2 (they're instantiated from code in any case). Removed text from date field because it didn't work without the formatter.

NJRDateFormatter: Workaround for 10.2 NSScanner bug [Ben Hines].

NJRQTMediaPopUpButton: Remove corrupt JPEG note, can no longer reproduce. Removed -validateRecentMedia invocation, debug code shouldn't have been left in.

PSAlarmSetController: Set alerts before setting alarm, otherwise alarm in bogus state remains. Set date to today in awakeFromNib, moved from the nib. Disconnect initial first responder to work around 10.1 bug so keyboard focus is set properly when the window opens.

Pester.pbproj: Added VERSION.

Read Me.rtfd: Updated for 1.1a2.

VERSION: Updated for 1.1a2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source/PSAlarmSetController.m

    r43 r45  
    8383        }
    8484    }
     85    [timeDate setObjectValue: [NSDate date]];
    8586    [self inAtChanged: nil];
    8687    [self playSoundChanged: nil];
     
    9192    [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(playSoundChanged:) name: NJRQTMediaPopUpButtonMovieChangedNotification object: sound];
    9293    [voice setDelegate: self];
     94    if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_1) {
     95        // XXX workaround for 10.1.x bug which sets the first responder to the wrong field, but it works if I set the initial first responder to nil... go figure.
     96        [[self window] setInitialFirstResponder: nil];
     97    }
    9398    [[self window] makeKeyAndOrderFront: nil];
    9499}
     
    259264- (IBAction)setAlarm:(NSButton *)sender;
    260265{
    261     // set alarm
    262     [self setAlarmDateAndInterval: sender];
    263     [alarm setMessage: [messageField stringValue]];
    264     if (![alarm setTimer]) {
    265         [self setStatus: [@"Unable to set alarm.  " stringByAppendingString: [alarm invalidMessage]]];
    266         return;
    267     }
    268 
     266    // set alerts before setting alarm...
    269267    [alarm removeAlerts];
    270268    // dock bounce alert
     
    295293    if ([doSpeak intValue])
    296294        [alarm addAlert: [PSSpeechAlert alertWithVoice: [voice titleOfSelectedItem]]];
     295
     296    // set alarm
     297    [self setAlarmDateAndInterval: sender];
     298    [alarm setMessage: [messageField stringValue]];
     299    if (![alarm setTimer]) {
     300        [self setStatus: [@"Unable to set alarm.  " stringByAppendingString: [alarm invalidMessage]]];
     301        return;
     302    }
    297303   
    298304    [self setStatus: [[alarm date] descriptionWithCalendarFormat: @"Alarm set for %x at %X" timeZone: nil locale: nil]];
Note: See TracChangeset for help on using the changeset viewer.