Ignore:
Timestamp:
Oct 10, 2009, 1:19:51 AM (13 years ago)
Author:
livings124
Message:

get the username using cocoa instead of carbon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BonjourController.m

    r8983 r9263  
    4545    [self stop];
    4646   
    47     CFStringRef userName = CSCopyUserName(TRUE);
    48     NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", (NSString *)userName];
    49     CFRelease(userName);
     47    NSString * serviceName = [NSString stringWithFormat: @"Transmission Web Interface (%@)", NSUserName()];
    5048   
    5149    fService = [[NSNetService alloc] initWithDomain: @"local." type: @"_http._tcp." name: serviceName port: port];
Note: See TracChangeset for help on using the changeset viewer.