Changeset 78

Show
Ignore:
Timestamp:
12/27/05 14:57:55 (3 years ago)
Author:
mrowe
Message:

Replace uses of -[NSString cString] with -[NSString UTF8String] where appropriate. Closes #39.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Controller.m

    r77 r78  
    389389                consultKeychain = YES; 
    390390                accountName = [[[[question substringFromIndex:[firstQuestion length]] 
    391                                                 componentsSeparatedByString:@": "] objectAtIndex:0] cString]; 
     391                                                componentsSeparatedByString:@": "] objectAtIndex:0] UTF8String]; 
    392392        } 
    393393 
     
    397397                { 
    398398                        consultKeychain = [[NSUserDefaults standardUserDefaults] boolForKey:AddInteractivePasswordString]; 
    399                         accountName = [[[question componentsSeparatedByString:@"'s"] objectAtIndex:0] cString]; 
     399                        accountName = [[[question componentsSeparatedByString:@"'s"] objectAtIndex:0] UTF8String]; 
    400400                } 
    401401 
     
    533533                                GetFrontProcess(&focusSerialNumber); 
    534534                                 
    535                                 SecKeychainAddGenericPassword(nil, strlen(serviceName), serviceName, strlen(accountName), accountName, [passphrase length], (const void *)[passphrase cString], nil); 
     535                                SecKeychainAddGenericPassword(nil, strlen(serviceName), serviceName, strlen(accountName), accountName, [passphrase length], (const void *)[passphrase UTF8String], nil); 
    536536                                 
    537537                                SetFrontProcess(&focusSerialNumber); 
  • trunk/PassphraseRequester.m

    r28 r78  
    4848                } 
    4949 
    50                 printf("%s\n", [passphrase cString]); 
     50                printf("%s\n", [passphrase UTF8String]); 
    5151 
    5252                [pool release];