1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 03:12:44 +00:00

remove a couple more deprecated methods and an unneed stringWithFormat:

This commit is contained in:
Mitchell Livingston 2009-08-29 00:09:18 +00:00
parent ace6821574
commit 4cf26bd5db
3 changed files with 8 additions and 7 deletions

View file

@ -71,7 +71,9 @@ AboutWindowController * fAboutBoxInstance = nil;
- (IBAction) showLicense: (id) sender
{
[fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"COPYING" ofType: nil]]];
NSString * licenseText = [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"COPYING" ofType: nil]
usedEncoding: nil error: NULL];
[fLicenseView setString: licenseText];
[fLicenseCloseButton setTitle: NSLocalizedString(@"OK", "About window -> license close button")];
[NSApp beginSheet: fLicenseSheet modalForWindow: [self window] modalDelegate: nil didEndSelector: nil contextInfo: nil];

View file

@ -334,11 +334,10 @@
{
NSAlert * alert = [[NSAlert alloc] init];
[alert addButtonWithTitle: NSLocalizedString(@"OK", "Save log alert panel -> button")];
[alert setMessageText: [NSString stringWithFormat: NSLocalizedString(@"Log Could Not Be Saved",
"Save log alert panel -> title")]];
[alert setInformativeText: [NSString stringWithFormat:
[alert setMessageText: NSLocalizedString(@"Log Could Not Be Saved", "Save log alert panel -> title")];
[alert setInformativeText: [NSString stringWithFormat:
NSLocalizedString(@"There was a problem creating the file \"%@\".",
"Save log alert panel -> message"), [[panel filename] lastPathComponent]]];
"Save log alert panel -> message"), [[panel filename] lastPathComponent]]];
[alert setAlertStyle: NSWarningAlertStyle];
[alert runModal];

View file

@ -972,8 +972,8 @@ tr_session * fHandle;
[fRPCWhitelistArray addObject: @""];
[fRPCWhitelistTable reloadData];
int row = [fRPCWhitelistArray count] - 1;
[fRPCWhitelistTable selectRow: row byExtendingSelection: NO];
const int row = [fRPCWhitelistArray count] - 1;
[fRPCWhitelistTable selectRowIndexes: [NSIndexSet indexSetWithIndex: row] byExtendingSelection: NO];
[fRPCWhitelistTable editColumn: 0 row: row withEvent: nil select: YES];
}
}