#IUO `NSApp` should be of type `NSApplication`

Originator:frozendevil
Number:rdar://20887093 Date Originated:09-May-2015 11:15 AM
Status:Open Resolved:
Product:OS X SDK Product Version:Mac OS X 10.10.3 (14D136)
Classification:UI/Usability Reproducible:Not Applicable
 
Currently `NSApp` is typed as `AnyObject!`, which causes awkwardness when attempting to do things like `if let event = NSApp.currentEvent`. Being that `NSApp` is an alias for `NSApplication.sharedApplication()` it should share `sharedApplication()`s return type.

Comments


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!