Ejemplo n.º 1
0
    static void new_text(IntPtr self, IntPtr sel, IntPtr str)
    {
        string s = NSString.FromHandle(str);

        ObjcHelper.NSLog("hook: " + s);
        old_text(self, sel, str);
    }
Ejemplo n.º 2
0
 public static void Entry()
 {
     old_text = ObjcHook.MethodHook <imp_text>(ObjcHelper.GetClass("test"), new Selector("text:"), new_text);
 }