Bot releases are hidden (Show)
The main feature of this release is a segmented control style. We have also considerably improved the API and codebase.
Preferenceable
protocol was renamed to PreferencePane
toolbarItemTitle
property was renamed to preferencePaneTitle
preferencePaneIdentifier
property in your view controller.hideWindow()
in favor of NSWindowController#close()
(#21) d9ad07cPreferencesWindowController
viewControllers
parameter was renamed to preferencePanes
.showWindow()
method was renamed to .show()
and you can now optionally pass in which preference pane to showMigrating a view controller:
+extension PreferencePane.Identifier {
+ static let general = Identifier("general")
+}
-final class GeneralPreferenceViewController: NSViewController, Preferenceable {
+final class GeneralPreferenceViewController: NSViewController, PreferencePane {
+ let preferencePaneIdentifier = PreferencePane.Identifier.general
- let toolbarItemTitle = "General"
+ let preferencePaneTitle = "General"
let toolbarItemIcon = NSImage(named: NSImage.preferencesGeneralName)!
// …