-
Notifications
You must be signed in to change notification settings - Fork 136
Description
Please ensure you have given all the following requested information in your report.
Issue details
When setting a CALayer delegate and using "actionForLayer:forKey:", NSNull is a valid and central return option. (See https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/ReactingtoLayerChanges/ReactingtoLayerChanges.html)
However the roboVM binding for NSNull doesn't implement the CAAction interface.
robovm/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSNull.java
Lines 44 to 47 in a53bb3e
/*<annotations>*/@Library("Foundation") @NativeClass/*</annotations>*/ | |
/*<visibility>*/public/*</visibility>*/ class /*<name>*/NSNull/*</name>*/ | |
extends /*<extends>*/NSObject/*</extends>*/ | |
/*<implements>*/implements NSSecureCoding/*</implements>*/ { |
Therefor NSNull can't be returned in the delegate. I also haven't found any cast methods to cast it natively, but maybe I have just missed them.
For reference, the MOE bindings of NSNull implement CAAction along with another interface:
https://github.com/multi-os-engine/moe-core/blob/dbe4cb4e6f69ecc5e5ea8b984532b8432a8ebb9e/moe.apple/moe.platform.ios/src/main/java/apple/foundation/NSNull.java#L47
Configuration
Versions:
- Robovm: 2.3.16