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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]
  • (no subject) ali alavi
    • Re: Programmatically loading page into WebView [was: (no s... Jens Alfke

Reply via email to