From 5567401e6c5be8786b61a242e15f623a2540f337 Mon Sep 17 00:00:00 2001 From: dkimitsa Date: Mon, 11 Jul 2022 18:28:09 +0300 Subject: [PATCH] * fixed: #665 NSNull does not implement CAAction Corresponding code added manually as corresponding code is declared in QuartzCore as extension while NSNull is being parsed from Foundation. Declared in QartzCore as bellow: ``` /** NSNull protocol conformance. **/ @interface NSNull (CAActionAdditions) @end ``` --- .../src/main/java/org/robovm/apple/foundation/NSNull.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSNull.java b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSNull.java index c65d1800d..13520b973 100755 --- a/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSNull.java +++ b/compiler/cocoatouch/src/main/java/org/robovm/apple/foundation/NSNull.java @@ -44,7 +44,7 @@ /**/@Library("Foundation") @NativeClass/**/ /**/public/**/ class /**/NSNull/**/ extends /**/NSObject/**/ - /**/implements NSSecureCoding/**/ { + /**/implements NSSecureCoding/**/, CAAction /* CAAction is added as category in QuartzCore */{ /**/public static class NSNullPtr extends Ptr {}/**/ /**/static { ObjCRuntime.bind(NSNull.class); }/**/ @@ -68,4 +68,8 @@ @Method(selector = "initWithCoder:") protected native @Pointer long init(NSCoder coder); /**/ + + /* CAAction implementation */ + @Method(selector = "runActionForKey:object:arguments:") + public native void runAction(String event, NSObject anObject, NSDictionary dict); }