Changeset 1550
- Timestamp:
- 08/28/04 17:59:11 (4 years ago)
- Files:
-
- WiredClient/trunk/WCChat.m (modified) (6 diffs)
- WiredClient/trunk/WCMessages.m (modified) (4 diffs)
- WiredClient/trunk/WCNews.m (modified) (3 diffs)
- WiredClient/trunk/WCPreferences.m (modified) (3 diffs)
- WiredClient/trunk/WCPublicChat.m (modified) (3 diffs)
- WiredClient/trunk/WCTransfers.m (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCChat.m
r1547 r1550 1 /* $Id: WCChat.m,v 1.6 6 2004/08/28 14:57:00morris Exp $ */1 /* $Id: WCChat.m,v 1.67 2004/08/28 15:59:11 morris Exp $ */ 2 2 3 3 /* … … 30 30 #import "NSDateAdditions.h" 31 31 #import "NSMutableAttributedStringAdditions.h" 32 #import "NSSoundAdditions.h" 32 33 #import "NSStringAdditions.h" 33 34 #import "NSTextViewAdditions.h" … … 422 423 423 424 // --- play sound 424 if([(NSString *) [WCSettings objectForKey:WCUserJoinEventSound] length] > 0) 425 [[NSSound soundNamed:[WCSettings objectForKey:WCUserJoinEventSound]] play]; 425 [NSSound playSoundNamed:[WCSettings objectForKey:WCUserJoinEventSound]]; 426 426 } 427 427 … … 471 471 472 472 // --- play sound 473 if([(NSString *) [WCSettings objectForKey:WCUserLeaveEventSound] length] > 0) 474 [[NSSound soundNamed:[WCSettings objectForKey:WCUserLeaveEventSound]] play]; 473 [NSSound playSoundNamed:[WCSettings objectForKey:WCUserLeaveEventSound]]; 475 474 } 476 475 … … 780 779 781 780 // --- play sound 782 if([(NSString *) [WCSettings objectForKey:WCChatEventSound] length] > 0) 783 [[NSSound soundNamed:[WCSettings objectForKey:WCChatEventSound]] play]; 781 [NSSound playSoundNamed:[WCSettings objectForKey:WCChatEventSound]]; 784 782 } 785 783 … … 877 875 878 876 // --- play sound 879 if([(NSString *) [WCSettings objectForKey:WCChatEventSound] length] > 0) 880 [[NSSound soundNamed:[WCSettings objectForKey:WCChatEventSound]] play]; 877 [NSSound playSoundNamed:[WCSettings objectForKey:WCChatEventSound]]; 881 878 } 882 879 WiredClient/trunk/WCMessages.m
r1547 r1550 1 /* $Id: WCMessages.m,v 1.2 8 2004/08/28 14:57:00morris Exp $ */1 /* $Id: WCMessages.m,v 1.29 2004/08/28 15:59:11 morris Exp $ */ 2 2 3 3 /* … … 27 27 */ 28 28 29 #import "NSSoundAdditions.h" 29 30 #import "NSTextViewAdditions.h" 30 31 #import "NSWindowControllerAdditions.h" … … 231 232 232 233 // --- play sound 233 if([(NSString *) [WCSettings objectForKey:WCMessagesEventSound] length] > 0) 234 [[NSSound soundNamed:[WCSettings objectForKey:WCMessagesEventSound]] play]; 234 [NSSound playSoundNamed:[WCSettings objectForKey:WCMessagesEventSound]]; 235 235 236 236 [message release]; … … 267 267 268 268 // --- play sound 269 if([(NSString *) [WCSettings objectForKey:WCBroadcastEventSound] length] > 0) 270 [[NSSound soundNamed:[WCSettings objectForKey:WCBroadcastEventSound]] play]; 269 [NSSound playSoundNamed:[WCSettings objectForKey:WCBroadcastEventSound]]; 271 270 272 271 // --- show panel WiredClient/trunk/WCNews.m
r1505 r1550 1 /* $Id: WCNews.m,v 1.2 0 2004/08/16 17:42:49morris Exp $ */1 /* $Id: WCNews.m,v 1.21 2004/08/28 15:59:11 morris Exp $ */ 2 2 3 3 /* … … 29 29 #import "NSDateAdditions.h" 30 30 #import "NSMutableAttributedStringAdditions.h" 31 #import "NSSoundAdditions.h" 31 32 #import "NSWindowControllerAdditions.h" 32 33 #import "WCAccount.h" … … 329 330 330 331 // --- play sound 331 if([(NSString *) [WCSettings objectForKey:WCNewsEventSound] length] > 0) 332 [[NSSound soundNamed:[WCSettings objectForKey:WCNewsEventSound]] play]; 332 [NSSound playSoundNamed:[WCSettings objectForKey:WCNewsEventSound]]; 333 333 334 334 [scannedNews release]; WiredClient/trunk/WCPreferences.m
r1549 r1550 1 /* $Id: WCPreferences.m,v 1. 39 2004/08/28 15:52:34morris Exp $ */1 /* $Id: WCPreferences.m,v 1.40 2004/08/28 15:59:11 morris Exp $ */ 2 2 3 3 /* … … 29 29 #import "NSDataAdditions.h" 30 30 #import "NSPopUpButtonAdditions.h" 31 #import "NSSoundAdditions.h" 31 32 #import "WCIconMatrix.h" 32 33 #import "WCIcons.h" … … 863 864 - (IBAction)selectSound:(id)sender { 864 865 if([[sender selectedItem] tag] == 0) 865 [ [NSSound soundNamed:[sender titleOfSelectedItem]] play];866 [NSSound playSoundNamed:[sender titleOfSelectedItem]]; 866 867 } 867 868 WiredClient/trunk/WCPublicChat.m
r1549 r1550 1 /* $Id: WCPublicChat.m,v 1. 39 2004/08/28 15:52:34morris Exp $ */1 /* $Id: WCPublicChat.m,v 1.40 2004/08/28 15:59:11 morris Exp $ */ 2 2 3 3 /* … … 28 28 29 29 #import "NSDateAdditions.h" 30 #import "NSSoundAdditions.h" 30 31 #import "WCAccount.h" 31 32 #import "WCConnection.h" … … 153 154 154 155 // --- play sound 155 if([(NSString *) [WCSettings objectForKey:WCConnectedEventSound] length] > 0) 156 [[NSSound soundNamed:[WCSettings objectForKey:WCConnectedEventSound]] play]; 156 [NSSound playSoundNamed:[WCSettings objectForKey:WCConnectedEventSound]]; 157 157 158 158 // --- show window WiredClient/trunk/WCTransfers.m
r1547 r1550 1 /* $Id: WCTransfers.m,v 1.5 6 2004/08/28 14:57:00morris Exp $ */1 /* $Id: WCTransfers.m,v 1.57 2004/08/28 15:59:11 morris Exp $ */ 2 2 3 3 /* … … 30 30 #import "NSFileManagerAdditions.h" 31 31 #import "NSNumberAdditions.h" 32 #import "NSSoundAdditions.h" 32 33 #import "NSStringAdditions.h" 33 34 #import "NSThreadAdditions.h" … … 309 310 310 311 // --- play sound 311 if([(NSString *) [WCSettings objectForKey:WCTransferStartedEventSound] length] > 0) 312 [[NSSound soundNamed:[WCSettings objectForKey:WCTransferStartedEventSound]] play]; 312 [NSSound playSoundNamed:[WCSettings objectForKey:WCTransferStartedEventSound]]; 313 313 } 314 314 … … 1265 1265 1266 1266 // --- play sound 1267 if([(NSString *) [WCSettings objectForKey:WCTransferDoneEventSound] length] > 0) 1268 [[NSSound soundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]] play]; 1267 [NSSound playSoundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]]; 1269 1268 1270 1269 // --- preview file … … 1522 1521 1523 1522 // --- play sound 1524 if([(NSString *) [WCSettings objectForKey:WCTransferDoneEventSound] length] > 0) 1525 [[NSSound soundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]] play]; 1523 [NSSound playSoundNamed:[WCSettings objectForKey:WCTransferDoneEventSound]]; 1526 1524 1527 1525 // --- reload all files affected
