Make all senders parameters for actions optional — Any? instead of AnyObject or Any.

This commit is contained in:
Brent Simmons
2018-02-11 18:58:50 -08:00
parent 84a8cb1a0e
commit 1aac355418
9 changed files with 31 additions and 27 deletions

View File

@@ -68,12 +68,12 @@ class AddFolderWindowController : NSWindowController {
// MARK: Actions
@IBAction func cancel(_ sender: AnyObject) {
@IBAction func cancel(_ sender: Any?) {
hostWindow!.endSheet(window!, returnCode: NSApplication.ModalResponse.cancel)
}
@IBAction func addFolder(_ sender: AnyObject) {
@IBAction func addFolder(_ sender: Any?) {
hostWindow!.endSheet(window!, returnCode: NSApplication.ModalResponse.OK)
}