Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
I know that we probably have to track iOS' APIs, which specify AnyClass, but all the GKStateMachine APIs work only with subtypes of GKState.
The API are using `Class` for which the closest .NET is `System.Type`...
but maybe we can expose this manually with a generic constraint so only GKState (and subclasses) can be specified.
The GameplayKit types that use `Class` in their selectors are:
* this one is exposed publicly (with `Class`, not `System.Type`)
I found (and fixed) a few issues after reading more documentation but those API are meant to work on types (not instances) so we cannot change that API (nor restrict it at compile time).
What we can do is to provide helpers methods that accept an (GKState for example) instance and then call the ObjC using the type of that instance. That helps if you already have instance ready of the states.
fixed in maccore/xcode7 8296a2d0a24ad86f075c310a68ca52101bd3af03