Changeset 9003


Ignore:
Timestamp:
Aug 29, 2009, 12:09:18 AM (13 years ago)
Author:
livings124
Message:

remove a couple more deprecated methods and an unneed stringWithFormat:

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/AboutWindowController.m

    r7659 r9003  
    7272- (IBAction) showLicense: (id) sender
    7373{
    74     [fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"COPYING" ofType: nil]]];
     74    NSString * licenseText = [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"COPYING" ofType: nil]
     75                                usedEncoding: nil error: NULL];
     76    [fLicenseView setString: licenseText];
    7577    [fLicenseCloseButton setTitle: NSLocalizedString(@"OK", "About window -> license close button")];
    7678       
  • trunk/macosx/MessageWindowController.m

    r7802 r9003  
    335335            NSAlert * alert = [[NSAlert alloc] init];
    336336            [alert addButtonWithTitle: NSLocalizedString(@"OK", "Save log alert panel -> button")];
    337             [alert setMessageText: [NSString stringWithFormat: NSLocalizedString(@"Log Could Not Be Saved",
    338                                     "Save log alert panel -> title")]];
    339             [alert setInformativeText: [NSString stringWithFormat:
     337            [alert setMessageText: NSLocalizedString(@"Log Could Not Be Saved", "Save log alert panel -> title")];
     338            [alert setInformativeText: [NSString stringWithFormat:
    340339                    NSLocalizedString(@"There was a problem creating the file \"%@\".",
    341                                         "Save log alert panel -> message"), [[panel filename] lastPathComponent]]];
     340                    "Save log alert panel -> message"), [[panel filename] lastPathComponent]]];
    342341            [alert setAlertStyle: NSWarningAlertStyle];
    343342           
  • trunk/macosx/PrefsController.m

    r8957 r9003  
    973973        [fRPCWhitelistTable reloadData];
    974974       
    975         int row = [fRPCWhitelistArray count] - 1;
    976         [fRPCWhitelistTable selectRow: row byExtendingSelection: NO];
     975        const int row = [fRPCWhitelistArray count] - 1;
     976        [fRPCWhitelistTable selectRowIndexes: [NSIndexSet indexSetWithIndex: row] byExtendingSelection: NO];
    977977        [fRPCWhitelistTable editColumn: 0 row: row withEvent: nil select: YES];
    978978    }
Note: See TracChangeset for help on using the changeset viewer.