Ignore:
Timestamp:
01/02/03 05:30:03 (18 years ago)
Author:
Nicholas Riley
Message:

Updated for Pester 1.1a5 (very limited release).

Pester 1.1a4 was never released.

Location:
trunk/Cocoa/Pester/Source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/Source

    • Property svn:ignore
      •  

        old new  
        11build
         2.gdb_history
  • trunk/Cocoa/Pester/Source/PSMovieAlertController.m

    r45 r53  
    1717@implementation PSMovieAlertController
    1818
    19 + (PSMovieAlertController *)controllerWithAlarm:(PSAlarm *)alarm movieAlert:(PSMovieAlert *)alert;
     19+ (PSMovieAlertController *)controllerWithAlarm:(PSAlarm *)anAlarm movieAlert:(PSMovieAlert *)anAlert;
    2020{
    21     return [[self alloc] initWithAlarm: alarm movieAlert: alert];
     21    return [[self alloc] initWithAlarm: anAlarm movieAlert: anAlert];
    2222}
    2323
     
    3939}
    4040
    41 - (id)initWithAlarm:(PSAlarm *)alarm movieAlert:(PSMovieAlert *)alert;
     41- (id)initWithAlarm:(PSAlarm *)anAlarm movieAlert:(PSMovieAlert *)anAlert;
    4242{
    4343    if ([self initWithWindowNibName: @"Movie alert"]) {
    44         NSMovie *movie = [alert movie];
     44        NSMovie *movie = [anAlert movie];
    4545        NSWindow *window = [self window]; // connect outlets
     46        alarm = anAlarm;
     47        alert = anAlert;
    4648        [movieView setMovie: movie];
    4749        theMovie = [movie QTMovie];
     
    6769            [window setFrame: frame display: NO];
    6870            [window setTitle: [alarm message]];
     71            {   // XXX workaround for (IMO) ugly appearance of Cocoa utility windows
     72                NSView *miniButton = [window standardWindowButton: NSWindowMiniaturizeButton],
     73                *zoomButton = [window standardWindowButton: NSWindowZoomButton];
     74                // NOTE: this will not work if the window is resizable: when the frame is reset, the standard buttons reappear
     75                [miniButton setFrameOrigin: NSMakePoint(-100, -100)];
     76                [zoomButton setFrameOrigin: NSMakePoint(-100, -100)];
     77                [[miniButton superview] setNeedsDisplay: YES];
     78                [[zoomButton superview] setNeedsDisplay: YES];
     79            }
    6980            [[self window] orderFrontRegardless];
    7081        }
     
    91102    repetitions = 0;
    92103    [movieView stop: self];
    93     [self release];
     104    [alert completedForAlarm: alarm];
     105    [self autorelease];
    94106    // note: there may still be a retained copy of this object until the runloop timer has let go of us at the end of the current movie playback cycle; donÕt worry about it.
    95107}
Note: See TracChangeset for help on using the changeset viewer.