Create GameViewController without binding

imixalimixal Member ✭✭

I'm trying to implemented metal api for my engine. According Metal APi game samples, GameViewController is binding to Objective-C runtime using [Register("GameViewController")]. I want to create GameViewController by myself? Can I do it without binding?

Tagged:

Answers

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    I'm not honestly sure what you are asking. When you derive from a ObjC call, we will register it for you, though you can use [Register] to pick the name.

    You can use this to have it picked up if a storyboard or something is looking for a subclass of that name.

    If you are asking how Register works, take a look at https://docs.microsoft.com/en-us/xamarin/mac/internals/how-it-works

    Otherwise, please provide more details, preferably a concrete example.

Sign In or Register to comment.