Joshua Emmons:
You can find all the gory details in SE-0112, but the long and the short of it is, depending on the domain
of a given NSError
, Swift automatically bridges it to a struct describing that domain. In the case of NSURLErrorDomain
, for example, Swift will bridge to a URLError[…]
You can also use the CustomNSError protocol to bridge in the other direction.
See also: CocoaError.
Cocoa Language Design NSError Objective-C Programming Swift Programming Language
Jeff Johnson:
As far as I can tell, NSNotificationCenter
now keeps a strong reference to the observer while posting a notification. As a consequence, the observer can no longer deallocate while processing the notification. This behavior occurs both with Automatic Reference Counting (ARC) and with Manual Retain-Release (MRR). Hooray!
It’s still true that removeObserver:
does not block for notifications in progress.
Automatic Reference Counting (ARC) Cocoa Concurrency iOS iOS 10 Mac macOS 10.12 Sierra Memory Management Programming
Howard Oakley:
Sierra 10.12.6 addresses the previous problems with Apple’s new file system, APFS, by making it normalising, thus compatible with HFS+ file and folder naming.
Unfortunately, the update also breaks the tools provided in 10.12.4 and 10.12.5 for working with APFS, and Disk Utility is similarly incapable of even distinguishing between case-sensitive and case-insensitive variants of APFS. While 10.12.6 does read from and write to APFS volumes, it can do little more than that.
Apple File System (APFS) Disk Utility File System Mac macOS 10.12 Sierra