Changeset 1361

Show
Ignore:
Timestamp:
06/10/04 15:21:21 (5 years ago)
Author:
morris
Message:

add -clearSender and send it before killing the file window so that WCConnection won't send error messages to a dead instance

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCConnection.h

    r1356 r1361  
    1 /* $Id: WCConnection.h,v 1.13 2004/06/01 20:52:11 morris Exp $ */ 
     1/* $Id: WCConnection.h,v 1.14 2004/06/10 13:21:21 morris Exp $ */ 
    22 
    33/* 
     
    147147- (void)                                                sendCommand:(NSString *)command withArgument:(NSString *)argument1 withArgument:(NSString *)argument2 withSender:(id)sender;; 
    148148- (void)                                                sendCommand:(NSString *)command withArgument:(NSString *)argument1 withArgument:(NSString *)argument2 withArgument:(NSString *)argument3 withSender:(id)sender; 
     149- (void)                                                clearSender:(id)sender; 
    149150- (void)                                                receiveData:(NSData *)data; 
    150151         
  • WiredClient/trunk/WCConnection.m

    r1357 r1361  
    1 /* $Id: WCConnection.m,v 1.19 2004/06/08 20:52:40 morris Exp $ */ 
     1/* $Id: WCConnection.m,v 1.20 2004/06/10 13:21:21 morris Exp $ */ 
    22 
    33/* 
     
    687687 
    688688 
     689- (void)clearSender:(id)sender { 
     690        if(_sender == sender) 
     691                _sender = NULL; 
     692} 
     693 
     694 
     695 
    689696- (void)receiveData:(NSData *)data { 
    690697        NSString        *string, *argument; 
  • WiredClient/trunk/WCFileInfo.m

    r1332 r1361  
    1 /* $Id: WCFileInfo.m,v 1.14 2004/05/23 20:31:02 morris Exp $ */ 
     1/* $Id: WCFileInfo.m,v 1.15 2004/06/10 13:21:21 morris Exp $ */ 
    22 
    33/* 
     
    7777        [[NSNotificationCenter defaultCenter] removeObserver:self]; 
    7878 
     79        [_connection clearSender:self]; 
     80         
    7981        [_connection release]; 
    8082        [_file release];