IN: cocoa-webkit USING: alien cocoa compiler io kernel math objc objc-NSObject objc-NSURLRequest objc-NSWindow objc-WebFrame objc-WebView parser sequences threads ; : ( string -- id ) NSURLRequest swap [requestWithURL:] ; : ( -- view ) WebView [alloc] 0 0 100 100 f f [initWithFrame:frameName:groupName:] ; "WebKit demo" 10 10 600 600 dup dup [mainFrame] "http://factorcode.org" [loadRequest:] [setContentView:] dup f [makeKeyAndOrderFront:] event-loop