Changeset 1550

Show
Ignore:
Timestamp:
08/28/04 17:59:11 (4 years ago)
Author:
morris
Message:

use NSSound additions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCChat.m

    r1547 r1550  
    1 /* $Id: WCChat.m,v 1.66 2004/08/28 14:57:00 morris Exp $ */ 
     1/* $Id: WCChat.m,v 1.67 2004/08/28 15:59:11 morris Exp $ */ 
    22 
    33/* 
     
    3030#import "NSDateAdditions.h" 
    3131#import "NSMutableAttributedStringAdditions.h" 
     32#import "NSSoundAdditions.h" 
    3233#import "NSStringAdditions.h" 
    3334#import "NSTextViewAdditions.h" 
     
    422423         
    423424        // --- play sound 
    424         if([(NSString *) [WCSettings objectForKey:WCUserJoinEventSound] length] > 0) 
    425                 [[NSSound soundNamed:[WCSettings objectForKey:WCUserJoinEventSound]] play]; 
     425        [NSSound playSoundNamed:[WCSettings objectForKey:WCUserJoinEventSound]]; 
    426426} 
    427427 
     
    471471         
    472472        // --- play sound 
    473         if([(NSString *) [WCSettings objectForKey:WCUserLeaveEventSound] length] > 0) 
    474                 [[NSSound soundNamed:[WCSettings objectForKey:WCUserLeaveEventSound]] play]; 
     473        [NSSound playSoundNamed:[WCSettings objectForKey:WCUserLeaveEventSound]]; 
    475474} 
    476475 
     
    780779 
    781780        // --- play sound 
    782         if([(NSString *) [WCSettings objectForKey:WCChatEventSound] length] > 0) 
    783                 [[NSSound soundNamed:[WCSettings objectForKey:WCChatEventSound]] play]; 
     781        [NSSound playSoundNamed:[WCSettings objectForKey:WCChatEventSound]]; 
    784782} 
    785783 
     
    877875         
    878876        // --- play sound 
    879         if([(NSString *) [WCSettings objectForKey:WCChatEventSound] length] > 0) 
    880                 [[NSSound soundNamed:[WCSettings objectForKey:WCChatEventSound]] play]; 
     877        [NSSound playSoundNamed:[WCSettings objectForKey:WCChatEventSound]]; 
    881878} 
    882879 
  • WiredClient/trunk/WCMessages.m

    r1547 r1550  
    1 /* $Id: WCMessages.m,v 1.28 2004/08/28 14:57:00 morris Exp $ */ 
     1/* $Id: WCMessages.m,v 1.29 2004/08/28 15:59:11 morris Exp $ */ 
    22 
    33/* 
     
    2727 */ 
    2828 
     29#import "NSSoundAdditions.h" 
    2930#import "NSTextViewAdditions.h" 
    3031#import "NSWindowControllerAdditions.h" 
     
    231232         
    232233        // --- play sound 
    233         if([(NSString *) [WCSettings objectForKey:WCMessagesEventSound] length] > 0) 
    234                 [[NSSound soundNamed:[WCSettings objectForKey:WCMessagesEventSound]] play]; 
     234        [NSSound playSoundNamed:[WCSettings objectForKey:WCMessagesEventSound]]; 
    235235         
    236236        [message release]; 
     
    267267         
    268268        // --- play sound 
    269         if([(NSString *) [WCSettings objectForKey:WCBroadcastEventSound] length] > 0) 
    270                 [[NSSound soundNamed:[WCSettings objectForKey:WCBroadcastEventSound]] play]; 
     269        [NSSound playSoundNamed:[WCSettings objectForKey:WCBroadcastEventSound]]; 
    271270         
    272271        // --- show panel 
  • WiredClient/trunk/WCNews.m

    r1505 r1550  
    1 /* $Id: WCNews.m,v 1.20 2004/08/16 17:42:49 morris Exp $ */ 
     1/* $Id: WCNews.m,v 1.21 2004/08/28 15:59:11 morris Exp $ */ 
    22 
    33/* 
     
    2929#import "NSDateAdditions.h" 
    3030#import "NSMutableAttributedStringAdditions.h" 
     31#import "NSSoundAdditions.h" 
    3132#import "NSWindowControllerAdditions.h" 
    3233#import "WCAccount.h" 
     
    329330 
    330331        // --- play sound 
    331         if([(NSString *) [WCSettings objectForKey:WCNewsEventSound] length] > 0) 
    332                 [[NSSound soundNamed:[WCSettings objectForKey:WCNewsEventSound]] play]; 
     332        [NSSound playSoundNamed:[WCSettings objectForKey:WCNewsEventSound]]; 
    333333         
    334334        [scannedNews release]; 
  • WiredClient/trunk/WCPreferences.m

    r1549 r1550  
    1 /* $Id: WCPreferences.m,v 1.39 2004/08/28 15:52:34 morris Exp $ */ 
     1/* $Id: WCPreferences.m,v 1.40 2004/08/28 15:59:11 morris Exp $ */ 
    22 
    33/* 
     
    2929#import "NSDataAdditions.h" 
    3030#import "NSPopUpButtonAdditions.h" 
     31#import "NSSoundAdditions.h" 
    3132#import "WCIconMatrix.h" 
    3233#import "WCIcons.h" 
     
    863864- (IBAction)selectSound:(id)sender { 
    864865        if([[sender selectedItem] tag] == 0) 
    865                 [[NSSound soundNamed:[sender titleOfSelectedItem]] play]; 
     866                [NSSound playSoundNamed:[sender titleOfSelectedItem]]; 
    866867} 
    867868 
  • WiredClient/trunk/WCPublicChat.m

    r1549 r1550  
    1 /* $Id: WCPublicChat.m,v 1.39 2004/08/28 15:52:34 morris Exp $ */ 
     1/* $Id: WCPublicChat.m,v 1.40 2004/08/28 15:59:11 morris Exp $ */ 
    22 
    33/* 
     
    2828 
    2929#import "NSDateAdditions.h" 
     30#import "NSSoundAdditions.h" 
    3031#import "WCAccount.h" 
    3132#import "WCConnection.h" 
     
    153154         
    154155        // --- play sound 
    155         if([(NSString *) [WCSettings objectForKey:WCConnectedEventSound] length] > 0) 
    156                 [[NSSound soundNamed:[WCSettings objectForKey:WCConnectedEventSound]] play]; 
     156        [NSSound playSoundNamed:[WCSettings objectForKey:WCConnectedEventSound]]; 
    157157 
    158158        // --- show window 
  • WiredClient/trunk/WCTransfers.m

    r1547 r1550  
    1 /* $Id: WCTransfers.m,v 1.56 2004/08/28 14:57:00 morris Exp $ */ 
     1/* $Id: WCTransfers.m,v 1.57 2004/08/28 15:59:11 morris Exp $ */ 
    22 
    33/* 
     
    3030#import "NSFileManagerAdditions.h" 
    3131#import "NSNumberAdditions.h" 
     32#import "NSSoundAdditions.h" 
    3233#import "NSStringAdditions.h" 
    3334#import "NSThreadAdditions.h" 
     
    309310         
    310311        // --- play sound 
    311         if([(NSString *) [WCSettings objectForKey:WCTransferStartedEventSound] length] > 0) 
    312                 [[NSSound soundNamed:[WCSettings objectForKey:WCTransferStartedEventSound]] play]; 
     312        [NSSound playSoundNamed:[WCSettings objectForKey:WCTransferStartedEventSound]]; 
    313313} 
    314314 
     
    12651265                         
    12661266                        // --- play sound 
    1267                         if([(NSString *) [WCSettings objectForKey:WCTransferDoneEventSound] length] > 0) 
    1268                                 [[NSSound soundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]] play]; 
     1267                        [NSSound playSoundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]]; 
    12691268 
    12701269                        // --- preview file 
     
    15221521                         
    15231522                        // --- play sound 
    1524                         if([(NSString *) [WCSettings objectForKey:WCTransferDoneEventSound] length] > 0) 
    1525                                 [[NSSound soundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]] play]; 
     1523                        [NSSound playSoundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]]; 
    15261524                         
    15271525                        // --- reload all files affected