Can't find Cocoa book - need help

Discussion in 'Mac Programming' started by slooksterPSV, Dec 26, 2006.

  1. macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #1
    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.
     
  2. thread starter macrumors 68030

    slooksterPSV

    Joined:
    Apr 17, 2004
    Location:
    Nowheresville
    #2
    I got it. So I withdraw my comment.
     
  3. macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #3
    beat me to it... i needed the same thing for tominated
     

Share This Page