Changeset 53 for trunk/Cocoa/Pester/Source/NJRVoicePopUpButton.m
- Timestamp:
- 01/02/03 05:30:03 (21 years ago)
- Location:
- trunk/Cocoa/Pester/Source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cocoa/Pester/Source
- Property svn:ignore
-
old new 1 1 build 2 .gdb_history
-
- Property svn:ignore
-
trunk/Cocoa/Pester/Source/NJRVoicePopUpButton.m
r43 r53 68 68 } 69 69 70 - (void)setVoice:(NSString *)voice; 71 { 72 int voiceIdx = [self indexOfItemWithTitle: voice]; 73 if (voiceIdx == -1) { 74 [self _invalidateVoiceSelection]; 75 } else { 76 [self selectItemAtIndex: voiceIdx]; 77 } 78 } 79 70 80 - (void)_previewVoice; 71 81 { … … 80 90 81 91 if ( (err = GetIndVoice(voiceIndex, &voice)) != noErr) { 82 NSBeginAlertSheet(@"Voice not available", @"OK", nil, nil, [self window], nil, nil, nil, nil, @"The voice Ò%@Ó you selected could not be used. An error of type %ld occurred while attempting to retrieve voice information.", voiceName, err);92 NSBeginAlertSheet(@"Voice not available", nil, nil, nil, [self window], nil, nil, nil, nil, @"The voice Ò%@Ó you selected could not be used. An error of type %ld occurred while attempting to retrieve voice information.", voiceName, err); 83 93 [self _invalidateVoiceSelection]; 84 94 return;
Note:
See TracChangeset
for help on using the changeset viewer.