Forum Xamarin.Mac

What parameters does this function need?

LochLoch Member ✭✭

Hi, I've made a save function in my AppDelegate.cs:
public void Save()
//This is an extension method that prints the string on a new line e.g str.println

I have assigned this method to the default File/Save but when compiling it says in the console: ObjCRuntime.RuntimeException: The registrar found a signature mismatch in the method 'Project.AppDelegate.Save' - the selector 'Save:' indicates the method takes 1 parameters, while the managed method has 0 parameters.

What parameter does this method need?


  • JuniorJiangJuniorJiang Member, Xamarin Team Xamurai
    edited September 2020

    Hi @Loch , it seems there are no methods name is called Save , and can be Exported in AppDelegate.cs.

    You can have a check with the method list of UIApplicationDelegate Class .

    If there is a Save method, you can know what's the argument of it.

Sign In or Register to comment.