Open stuartmorgan opened 1 month ago
As part of the category overhaul, experiment with code genning them as extension methods instead of inserting them into the class.
If that doesn't work (eg blocked by semantic differences between ObjC categories and Dart extension methods), we'll just have to add NSValueAVFoundationExtensions
, and any other categories users request, to package:objective_c.
AVFoundation has a header
AVTime.h
, which contains the following extension:I can't get ffigen to give me access to those, which is problematic since I am trying to convert code that uses
CMTimeValue
. I'm assuming the problem is thatNSValue
is part ofobjective_c
, and so ffigen is skipping it?I think the desired behavior here would be that extensions on
objective_c
-provided types would be created as Dart extensions in my ffi_bindings.dart (although I'm not sure if there's an easy way for the tool to determine which extensions are new, vs. part ofobjective_c
).