mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
Fix NSAttributedString deprecation (#3330)
This commit is contained in:
parent
83927eade1
commit
2ac049c7ba
1 changed files with 5 additions and 3 deletions
|
@ -38,9 +38,11 @@ AboutWindowController* fAboutBoxInstance = nil;
|
||||||
self.fCopyrightField.stringValue = [NSBundle.mainBundle localizedStringForKey:@"NSHumanReadableCopyright" value:nil
|
self.fCopyrightField.stringValue = [NSBundle.mainBundle localizedStringForKey:@"NSHumanReadableCopyright" value:nil
|
||||||
table:@"InfoPlist"];
|
table:@"InfoPlist"];
|
||||||
|
|
||||||
[self.fTextView.textStorage
|
NSAttributedString *credits = [[NSAttributedString alloc] initWithURL:[NSBundle.mainBundle URLForResource:@"Credits" withExtension:@"rtf"]
|
||||||
setAttributedString:[[NSAttributedString alloc] initWithPath:[NSBundle.mainBundle pathForResource:@"Credits" ofType:@"rtf"]
|
options:@{NSDocumentTypeDocumentAttribute: NSRTFTextDocumentType}
|
||||||
documentAttributes:nil]];
|
documentAttributes:nil
|
||||||
|
error:nil];
|
||||||
|
[self.fTextView.textStorage setAttributedString:credits];
|
||||||
|
|
||||||
//size license button
|
//size license button
|
||||||
CGFloat const oldButtonWidth = NSWidth(self.fLicenseButton.frame);
|
CGFloat const oldButtonWidth = NSWidth(self.fLicenseButton.frame);
|
||||||
|
|
Loading…
Reference in a new issue