• 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: Programmatically loading page into WebView [was: (no subject)]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically loading page into WebView [was: (no subject)]


  • Subject: Re: Programmatically loading page into WebView [was: (no subject)]
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 4 Mar 2008 09:43:08 -0800


On 4 Mar '08, at 1:18 AM, ali alavi wrote:

I need to be able to load the page automatically when I programmatically set the URL filed to a web page address. However the only way I can make the page appear now is by clicking in the URL field and hitting Return key. How can I do this without need for Return key to be hit?

The actions you configure in IB only occur in response to user events.

If you want to make the action happen programmatically, you can either call -performClick on the text field, or directly call the WebView method that you wired the text field to (passing a pointer to the text field as the 'sender' parameter.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: 
 >(no subject) (From: ali alavi <email@hidden>)

  • Prev by Date: NSString from wstring
  • Next by Date: NSPopUpButton/NSArrayController selected item for beyond bounds value?
  • Previous by thread: (no subject)
  • Next by thread: Loading web pages in WebView
  • Index(es):
    • Date
    • Thread