View Full Version : Can't find Cocoa book - need help

Dec 26, 2006, 10:26 PM
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 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.

Dec 26, 2006, 11:07 PM
I got it. So I withdraw my comment.

Dec 26, 2006, 11:37 PM
beat me to it... i needed the same thing for tominated