views:

79

answers:

2

Hey all,

Would it be possible to make a google search engine in Xcode, cocoa? If so, how? I want the user to type in a phrase in a textfield called inputBox, and the button to be sendButton. When the button is pressed it will open your default browser to the searched phrase.

Thanks,

KeViN

+3  A: 

Yes. See -[NSWorkspace openURL:] and -[NSString stringByAddingPercentEscapesUsingEncoding:].

Also, that isn't what is usually called a "search engine." That is a form that sends a request to Google.

Chuck
+2  A: 

Yes. Evidence: It's been done.

Of course, that needn't stop you from implementing your own as a learning project.

Also, what Chuck said about your use of the term “search engine”.

Peter Hosey