• 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: Execute On-Load
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Execute On-Load


  • Subject: Re: Execute On-Load
  • From: Joakim Danielson <email@hidden>
  • Date: Sun, 14 Nov 2004 23:45:31 +0100

Hi

You should call loadRequest for the WebView's main frame, at least this works for me:

[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com"]]];

Joakim

On 2004-11-14, at 21.23, Chris Flanigan wrote:

Well, I get the principle behind the awakeFromNib: method now. The
only thing I'm not understanding is how to pass an URL to WebView
manually. I can only find ways to act when the value is given from an
action of another object.

I'm obviously missing something...


On Sun, 14 Nov 2004 14:35:25 -0500, Colin O'Connor
<email@hidden> wrote:
You can implement the awakeFromNib: method, which is automatically called
when the nib is loaded. Or you can implement the delegate method
applicationDidFinishLaunching:. Check out the cocoa documentation for those
methods.

Colin




On 11/14/04 1:25 PM, "Chris Flanigan" <email@hidden> wrote:

I am currently writing an application that has 8 WebView objects. I
want each to get a specific image upon loading of the program.

I know how to get the WebView object to display the image if the URL
is in a textbox, and you press Enter.. and so on. What I'm wondering,
is how I'd automatically have the WebView object load those images
when the application is executed.

Neither of my Cocoa books cover this. Google has been no help...

Thanks in advance!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



--
<a href="http://alogin.linksynergy.com/php-bin/affiliate/links/showmerchant.shtml?oid=62104&subid=&roid=&link_type=3&showcode=Y&is_special=&pid=10000012&nid=1">Cheap
Web Hosting Only $7.95 a Month!</a>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Execute On-Load (From: Chris Flanigan <email@hidden>)
 >Re: Execute On-Load (From: "Colin O'Connor" <email@hidden>)
 >Re: Execute On-Load (From: Chris Flanigan <email@hidden>)

  • Prev by Date: NSTextField/View and shadows
  • Next by Date: Best way to catch signals in a Cocoa app
  • Previous by thread: Re: Execute On-Load
  • Next by thread: performSelector and subclassing
  • Index(es):
    • Date
    • Thread