Skip to content

Commit

Permalink
* fixed: #665 NSNull does not implement CAAction
Browse files Browse the repository at this point in the history
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) <CAAction>
@EnD
```
  • Loading branch information
dkimitsa committed Jul 11, 2022
1 parent a53bb3e commit 5567401
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/*<annotations>*/@Library("Foundation") @NativeClass/*</annotations>*/
/*<visibility>*/public/*</visibility>*/ class /*<name>*/NSNull/*</name>*/
extends /*<extends>*/NSObject/*</extends>*/
/*<implements>*/implements NSSecureCoding/*</implements>*/ {
/*<implements>*/implements NSSecureCoding/*</implements>*/, CAAction /* CAAction is added as category in QuartzCore */{

/*<ptr>*/public static class NSNullPtr extends Ptr<NSNull, NSNullPtr> {}/*</ptr>*/
/*<bind>*/static { ObjCRuntime.bind(NSNull.class); }/*</bind>*/
Expand All @@ -68,4 +68,8 @@
@Method(selector = "initWithCoder:")
protected native @Pointer long init(NSCoder coder);
/*</methods>*/

/* CAAction implementation */
@Method(selector = "runActionForKey:object:arguments:")
public native void runAction(String event, NSObject anObject, NSDictionary<NSString, ?> dict);
}

0 comments on commit 5567401

Please sign in to comment.