• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Home Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Fwd: Re: Home Button (From: Brian Heibert <email@hidden>)
 >Re: Home Button (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: connecting to an application from a web browser
  • Next by Date: Re: Distributed Objects or NSFileHandle?
  • Previous by thread: Re: Home Button
  • Next by thread: connecting to an application from a web browser
  • Index(es):
    • Date
    • Thread