Hi Folks,
I am playing with the Webview (I have made a “browser”) - does anybody knows where to get a reference on which
commands can be used?
on clicked theObject
if name of theObject is "go" then
GetURL()
end if
if name of theObject is "bt_vor" then
end if
if name of theObject is "bt_back" then
end if
end clicked
on end editing theObject
GetURL()
end end editing
on launched theObject
(*Add your script here.*)
end launched
on awake from nib theObject
end awake from nib
on GetURL()
set tmpURL to contents of text field "URL" of window "main"
try
set URLWithString to call method "URLWithString:" of class "NSURL" with parameter tmpURL
set requestWithURL to call method "requestWithURL:" of class "NSURLRequest" with parameter URLWithString
set mainframe to call method "mainFrame" of object (view "browser" of window "main")
call method "loadRequest:" of mainframe with parameter requestWithURL
on error the_error
log the_error
end try
end GetURL
thanks for any Feedback…
Stefan