示例#1
0
        public void TestStaticRegistrar()
        {
            var entryAssembly   = System.Reflection.Assembly.GetEntryAssembly();
            var mdtoolDirectory = Path.GetDirectoryName(entryAssembly.Location);

            if (!File.Exists(Path.Combine(mdtoolDirectory, "libvsmregistrar.dylib")))
            {
                // We don't have a full static registrar
                return;
            }

            var @class = new ObjCRuntime.Class(typeof(MonoDevelop.MacIntegration.MainToolbar.StatusIcon));

            var findType = typeof(ObjCRuntime.Class).GetMethod("FindType", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static);

            var result = (Type)findType.Invoke(null, new object [] { @class.Handle, null });

            Assert.IsNotNull(result);
        }
示例#2
0
 public static bool AddProtocol(this ObjCRuntime.Class cls, IntPtr protocol)
 {
     throw new NotImplementedException();
 }
示例#3
0
 // public static IntPtr SetMethodImplementation(this ObjCRuntime.Class cls, IntPtr method, delegate impl) { throw new NotImplementedException(); }
 public static IntPtr GetMethod(this ObjCRuntime.Class cls, IntPtr sel)
 {
     throw new NotImplementedException();
 }
示例#4
0
 public static void MethodExchange(this ObjCRuntime.Class cls, IntPtr sel1, IntPtr sel2)
 {
 }
 public void SetToViewControllerClass <T> ()
     where T : UIViewController
 {
     ToViewControllerClass = new ObjCRuntime.Class(typeof(T));
 }
 public void SetToViewControllerClass(Type type)
 {
     ToViewControllerClass = new ObjCRuntime.Class(type);
 }
示例#7
0
 public virtual override bool IsMemberOfClass(ObjCRuntime.Class aClass)
 {
     throw new NotImplementedException();
 }