Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to use PrepareWithInvocationTarget on NSUndoManager

$
0
0

When I try the following call

((MyDocument) this.UndoManager.PrepareWithInvocationTarget(this)).DoRemoveEntry (row);

I get the following error:

Could not find a valid superclass for type NSUndoManagerProxy. Did you forget to register the bindings at MonoMac.ObjCRuntime.Class.Register() or call NSApplication.Init()?

I know the problem has to do with Xamarin.Mac not supporting NSProxy, but does this mean there is no way to use NSInvocation based undo/redo? Why would there be a binding to PrepareWithInvocationTarget if thats the case?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>