[Cyberduck-trac] [Cyberduck] #11231: Crash in NSMutableParagraphStyle setParagraphStyle
Cyberduck
trac at cyberduck.io
Sat Dec 12 09:50:16 UTC 2020
#11231: Crash in NSMutableParagraphStyle setParagraphStyle
------------------------------+-------------------------
Reporter: gerryvz | Owner: dkocher
Type: defect | Status: reopened
Priority: high | Milestone: 7.7.1
Component: core | Version: 7.7.0
Severity: critical | Resolution:
Keywords: MacOS 11 Big Sur | Architecture: Intel
Platform: macOS 11 |
------------------------------+-------------------------
Changes (by AntoineRosset):
* status: closed => reopened
* resolution: fixed =>
Comment:
I found a better workaround for this macOS Big Sur bug.
It’s related to a preferences key, added by macOS.
It affects several macOS API.
How to reproduce:
{{{
[[NSUserDefaults standardUserDefaults] setBool: YES forKey:
@"__NSDisableSharingTextTabInstance”];
// -> What is it? Created by old version of macOS ? and added to your
preference file
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc]
init];
// It crashes here, if __NSDisableSharingTextTabInstance was YES
[paragraphStyle setParagraphStyle:[NSParagraphStyle
defaultParagraphStyle]];
}}}
Solution: at the start of your application:
{{{
[[NSUserDefaults standardUserDefaults] removeObjectForKey:
@"__NSDisableSharingTextTabInstance"];
}}}
--
Ticket URL: <https://trac.cyberduck.io/ticket/11231#comment:25>
Cyberduck <https://cyberduck.io>
Libre FTP, SFTP, WebDAV, S3 & OpenStack Swift browser for Mac and Windows
More information about the Cyberduck-trac
mailing list