Extraneous Warning For `windowShouldClose`

Originator:liamrosenfeld
Number:rdar://46578364 Date Originated:December 9 2018
Status:Closed Resolved:December 12 2018
Product:Xcode Product Version:Version 10.1 (10B61)
Classification:Usability Reproducible:Yes
 
Summary:
An extraneous warning is presented for `windowShouldClose` in the NSWindow delegate

Steps to Reproduce:
create an instance method `@objc func windowShouldClose(_ sender: NSWindow)` for the NSWindow delegate

Expected Results:
No warning

Actual Results:
Instance method 'windowShouldClose' nearly matches optional requirement 'windowShouldClose' of protocol 'NSWindowDelegate'

Version/Build:
Version 10.1 (10B61)

Comments

Apple Developer Relations

This issue behaves as intended based on the following:

You are missing the "Bool" return type. We are now closing this bug report.

If you have questions about the resolution, or if this is still a critical issue for you, then please update your bug report with that information.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

By liamrosenfeld at Feb. 24, 2019, 6:23 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!