Exemplo n.º 1
0
 public WebHistoryItem(string url)
 {
     NativeObject = (IntPtr)ObjCMessaging.objc_msgSend((IntPtr)ObjCMessaging.objc_msgSend((IntPtr)Cocoa.ObjCClass.FromType(typeof(WebHistoryItem)).ToIntPtr(), "alloc", typeof(IntPtr)), "initWithURLString:title:lastVisitedTimeInterval:", typeof(IntPtr), typeof(IntPtr), new Cocoa.String(url).NativeObject, typeof(IntPtr), IntPtr.Zero, typeof(double), 0);
 }
 public void Render(string content)
 {
     Cocoa.String native_content = new Cocoa.String(content);
     ObjCMessaging.objc_msgSend(NativeObject, "loadHTMLString:baseURL:", typeof(void), typeof(IntPtr), native_content.NativeObject, typeof(IntPtr), IntPtr.Zero);
 }
 public void GoForward()
 {
     ObjCMessaging.objc_msgSend(NativeObject, "goForward", typeof(void));
 }
 public void GoBack()
 {
     ObjCMessaging.objc_msgSend(NativeObject, "goBack", typeof(void));
 }
 public void Add(string url)
 {
     ObjCMessaging.objc_msgSend(NativeObject, "addItem:", typeof(void), typeof(IntPtr), new WebHistoryItem(url).NativeObject);
 }