Skip navigation.
 
mlRe: Programmatically loading page into WebView [was: (no subject)]
FROM : Jens Alfke
DATE : Tue Mar 04 18:43:08 2008

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

Related mailsAuthorDate
No related mails found.