Ignore:
Timestamp:
05/25/09 03:21:44 (15 years ago)
Author:
Nicholas Riley
Message:

Spaces fixes.

File:
1 edited

Legend:

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

    r364 r522  
    114114    [voice setDelegate: self]; // XXX why don't we do this in IB?  It should use the accessor...
    115115    [wakeUp setEnabled: [PSPowerManager autoWakeSupported]];
     116   
    116117    // 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.
    117     [[self window] setInitialFirstResponder: nil];
    118     [[self window] makeKeyAndOrderFront: nil];
     118    NSWindow *window = [self window];
     119    [window setInitialFirstResponder: nil];
     120    [window makeKeyAndOrderFront: nil];
    119121}
    120122
     
    422424    while ( (alert = [e nextObject]) != nil) {
    423425        if ([alert isKindOfClass: [PSDockBounceAlert class]]) {
    424             [bounceDockIcon setState: NSOnState];
     426            [bounceDockIcon setIntValue: YES]; // temporary for 1.1b8
    425427        } else if ([alert isKindOfClass: [PSScriptAlert class]]) {
    426428            [doScript setIntValue: YES];
     
    455457    @try {
    456458        // dock bounce alert
    457         if ([bounceDockIcon state] == NSOnState)
     459        if ([bounceDockIcon intValue]) // temporary for 1.1b8
    458460            [alerts addAlert: [PSDockBounceAlert alert]];
    459461        // script alert
     
    500502- (IBAction)showWindow:(id)sender;
    501503{
    502     if (![[self window] isVisible]) {
     504    NSWindow *window = [self window];
     505   
     506    if (![window isVisible]) {
    503507        NSDate *today = [NSCalendarDate dateForDay: [NSDate date]];
    504508        if ([(NSDate *)[timeDate objectValue] compare: today] == NSOrderedAscending) {
     
    507511        [self update: self];
    508512        // XXX bug workaround - otherwise, first responder appears to alternate every time the window is shown.  And if you set the initial first responder, you can't tab in the window. :(
    509         [[self window] makeFirstResponder: [[self window] initialFirstResponder]];
    510     }
     513        [window makeFirstResponder: [window initialFirstResponder]];
     514    }
     515   
    511516    [super showWindow: sender];
    512517}
Note: See TracChangeset for help on using the changeset viewer.