Documentation Archive Developer
Search

NotificationCenter Changes for Swift

NotificationCenter

Raw Value Type
From--
ToUInt

Declaration
From
class NCWidgetListViewController : NSViewController {
    @IBOutlet weak var delegate: NCWidgetListViewDelegate!
    var contents: [AnyObject]!
    var minimumVisibleRowCount: Int
    var hasDividerLines: Bool
    var editing: Bool
    var showsAddButtonWhenEditing: Bool
    func viewControllerAtRow(_ row: Int, makeIfNecessary makeIfNecesary: Bool) -> NSViewController!
    func rowForViewController(_ viewController: NSViewController!) -> Int
}
To
class NCWidgetListViewController : NSViewController {
    @IBOutlet weak var delegate: NCWidgetListViewDelegate?
    var contents: [AnyObject]!
    var minimumVisibleRowCount: Int
    var hasDividerLines: Bool
    var editing: Bool
    var showsAddButtonWhenEditing: Bool
    func viewControllerAtRow(_ row: Int, makeIfNecessary makeIfNecesary: Bool) -> NSViewController!
    func rowForViewController(_ viewController: NSViewController!) -> Int
}

Declaration
From
@IBOutlet weak var delegate: NCWidgetListViewDelegate!
To
@IBOutlet weak var delegate: NCWidgetListViewDelegate?

Declaration
From
class NCWidgetSearchViewController : NSViewController {
    @IBOutlet weak var delegate: NCWidgetSearchViewDelegate!
    var searchResults: [AnyObject]!
    var searchDescription: String!
    var searchResultsPlaceholderString: String!
    var searchResultKeyPath: String!
}
To
class NCWidgetSearchViewController : NSViewController {
    @IBOutlet weak var delegate: NCWidgetSearchViewDelegate?
    var searchResults: [AnyObject]!
    var searchDescription: String!
    var searchResultsPlaceholderString: String!
    var searchResultKeyPath: String!
}

Declaration
From
@IBOutlet weak var delegate: NCWidgetSearchViewDelegate!
To
@IBOutlet weak var delegate: NCWidgetSearchViewDelegate?