NSButton keyEquivalentModifierMask is the wrong type in swift
| Originator: | mlilback | ||
| Number: | rdar://24660685 | Date Originated: | Feb 15, 2016 |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | Xcode 7.2 |
| Classification: | Reproducible: | Always |
NSButton's keyEquivalentModifierMask is typed as an Int, while the objective C variant is NSUInteger. The options such as NSEventModifierFlags.CommandKeyMask.rawValue are Ints. The NSButton documentation says to use the modifier masks as the parameter. Doing so result in a compile error "Cannot assign value of type 'Uint' to type 'Int'. I would think the type of keyEquivalentModifierMask should at least by UInt to match the modifier flags and objective c. Ideally, the type should be NSEventModifierFlag so [.CommandKeyMask] can be used.
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!