Re: Home Button
Re: Home Button
- Subject: Re: Home Button
- From: Rush Manbert <email@hidden>
- Date: Thu, 21 Jun 2007 17:33:30 -0700
I. Savant wrote:
On Jun 21, 2007, at 7:54 PM, Brian Heibert wrote:
I looked at it and couldn't find WebFrame LoadRequest or MainFrame
when I tried to drag a line from the Home button to the webviewer
control
There's usually more to writing a Cocoa application than dragging a
few connections in Interface Builder ...
http://developer.apple.com/referencelibrary/GettingStarted/GS_Cocoa/
index.html
You'll have to start at the beginning and familiarize yourself with
the technology. Happy reading! :-)
Also, you don't hook the button up to the web view. You connect it to a
function in your controller. That function then does something like this:
NSURLRequest *theRequest = [NSURLRequest
requestWithURL:@"file://localhost//absolute/path/to/MyTestFile.html"];
[[myWebView mainFrame] loadRequest: theRequest];
which loads the page from the file. Change the URL as necessary. But
read first. How IB and XCode interact is not immediately apparent.
- Rush
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden