PDA

View Full Version : Trying to create a browser but...




The Learner
Jan 20, 2009, 09:09 AM
Well I am new to xcode and so far I am doing pretty well. I have my browser surfing the web and is able to print and go back and forth and what not but there are two key things I would like to do that I am having trouble figuring out. How to get a search bar working and how to create a new tab. Please if your going to give me code can you please tell me in which file to put it. Please to not get mad at me I am trying to learn this in the simplest way as possible. Thank you.:)



Me1000
Jan 20, 2009, 10:58 PM
Well I am new to xcode and so far I am doing pretty well. I have my browser surfing the web and is able to print and go back and forth and what not but there are two key things I would like to do that I am having trouble figuring out. How to get a search bar working and how to create a new tab. Please if your going to give me code can you please tell me in which file to put it. Please to not get mad at me I am trying to learn this in the simplest way as possible. Thank you.:)

Forgive me for not being über specific here but to address your search issue...

Isn't this just the same as your URL bar?
instead of sending the user to the URL (which is presumably a string) just send the user to http://www.google.com/search?q=[searchString value]
or something like that.

The Learner
Jan 21, 2009, 12:18 PM
See thats the thing, I understand I need to put the string but I don't know where I should but the code. should I put it in mydocument.h, mydocument.m, main.m? thats what I don't know. Thank you though. If you know where to put it please tell me, thank you.

kainjow
Jan 21, 2009, 12:52 PM
You can't learn programming like you can learn iMovie. It's completely different. I'd suggest picking up a book.

The Learner
Jan 21, 2009, 12:55 PM
Ok do you have any books that you could recomend for me then?

kainjow
Jan 21, 2009, 12:56 PM
http://guides.macrumors.com/Cocoa_FAQ#What_book_do_you_recommend_for_learning_Cocoa.3F :)

The Learner
Jan 21, 2009, 01:54 PM
Ok looks good, and this will help me build a web browser right?

Cromulent
Jan 21, 2009, 02:06 PM
Ok looks good, and this will help me build a web browser right?

It will help you learn to program. Then you can use that knowledge to build a browser using your own ingenuity :).