Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

slooksterPSV

macrumors 68040
Original poster
Apr 17, 2004
3,544
306
Nowheresville
I'm trying to make a simple Web Browser, but I have a problem:
I need to check the TextBox the user types the URL into and make sure there is an http:// in front of http://www.... otherwise it won't load the page. I know I have to have a responder or delegate or something to do this. I didn't practice this procedure enough to do this so how do I go about doing it.

1 - When the user presses enter, have the responder check the URL
2 - If the URL needs to have http:// in front, add it otherwise just load
3 - Send the request to load the page - I figure WebView will have an easy solution to this so I'm sure I can figure #2 and #3. But how do I do the responder thing? And how do I set that up in Interface Builder and that.


Thank you in advance.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.