Changeset 5115

Show
Ignore:
Timestamp:
12/12/07 10:43:11 (7 months ago)
Author:
morris
Message:

Pause when switching out

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Spiral/trunk/SPMovieController.m

    r5107 r5115  
    473473                           name:NSWindowDidResizeNotification 
    474474                         object:[_movieView window]]; 
     475 
     476        [[[NSWorkspace sharedWorkspace] notificationCenter] 
     477                addObserver:self 
     478                   selector:@selector(workspaceSessionDidResignActive:) 
     479                           name:NSWorkspaceSessionDidResignActiveNotification]; 
    475480         
    476481        [_movieView setDelegate:self]; 
     
    495500        if([[_overlayTextField stringValue] length] > 0) 
    496501                [self _flashOverlayString:[_overlayTextField stringValue]]; 
     502} 
     503 
     504 
     505 
     506- (void)workspaceSessionDidResignActive:(NSNotification *)notification { 
     507        [self stop]; 
    497508} 
    498509