4 Replies - 3285 Views - Last Post: 07 November 2011 - 10:32 AM

#1 Parkore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-November 11

Adding a google search feature to my web browser.

Posted 06 November 2011 - 06:45 PM

Hello Everyone.

I am extremely new to programming, so please bear with me.
Anyway, I recently downloaded Xcode 3 for my MacBook. I decided to make a web browser as my first project, but more advanced than the ones you see on Youtube. I have the Interface set up, and I am trying to implement a google search feature. My code so far is:
 
#import <Cocoa/Cocoa.h>
#import "MercuryAppDelegate.h"

int main(int argc, char *argv[])
{
	id searchQuery;
	id googlesearch;
	goto (urlDataHFTPURLErr @"http://www.google.com/search?q= %id",searchQue);
    return NSApplicationMain(argc,  (const char **) argv);
}


It continuously says that I have an error, and I can't figure out how to fix it. Any help is very much appreciated. If you need any more information, just say so. Thanks in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: Adding a google search feature to my web browser.

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4356
  • View blog
  • Posts: 12,175
  • Joined: 18-April 07

Re: Adding a google search feature to my web browser.

Posted 06 November 2011 - 07:03 PM

Moved to the C/C++ forum. This isn't C# code you are working on here. Hope you find your answer. :)
Was This Post Helpful? 0
  • +
  • -

#3 Parkore  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-November 11

Re: Adding a google search feature to my web browser.

Posted 07 November 2011 - 05:19 AM

View PostMartyr2, on 06 November 2011 - 07:03 PM, said:

Moved to the C/C++ forum. This isn't C# code you are working on here. Hope you find your answer. :)
Thanks. I guess that was my problem :P
Was This Post Helpful? 0
  • +
  • -

#4 jimblumberg  Icon User is offline

  • member icon


Reputation: 4131
  • View blog
  • Posts: 12,844
  • Joined: 25-December 09

Re: Adding a google search feature to my web browser.

Posted 07 November 2011 - 06:28 AM

Quote

I am extremely new to programming, so please bear with me.

Quote

I decided to make a web browser as my first project, but more advanced than the ones you see on Youtube.

Quote

It continuously says that I have an error, and I can't figure out how to fix it.

I would suggest that you need to learn to walk before you try to run. Start by learning the "basic" language. Once you understand most of the basic and intermediate concepts you might be ready to complete your application.

Jim
Was This Post Helpful? 1
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6074
  • View blog
  • Posts: 23,539
  • Joined: 23-August 08

Re: Adding a google search feature to my web browser.

Posted 07 November 2011 - 10:32 AM

View PostMartyr2, on 06 November 2011 - 09:03 PM, said:

Moved to the C/C++ forum. This isn't C# code you are working on here. Hope you find your answer. :)


Actually, this looks to be Objective-C, so I'll move it there. But dude...START SMALLER!!!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1