Re: Programmatically loading page into WebView [was: (no subject)]
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