Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jul 9, 2007, 03:43 PM   #1
macrumors newbie
Join Date: Jul 2007
Xcode: Google searchbar in Browser?

Hi again, I was wondering if someone could tell me how to get a Google Search Bar in Xcode onto my Browser
xcoder78 is offline   0 Reply With Quote
Old Jul 9, 2007, 03:53 PM   #2
robbieduncan's Avatar
Join Date: Jul 2002
Location: London
You realise this is not a one-line of code thing. I suggest you start reading the documentation!
robbieduncan is offline   0 Reply With Quote
Old Jul 9, 2007, 04:07 PM   #3
macrumors 6502
Join Date: Aug 2002
Location: Éire
Assuming your search field is an outlet in the nib file and is called "mySearchBar"

NSString *searchURL = [NSString stringWithFormat:@"", [mySearchBar stringValue]];
Then you just load that URL in your web view.

[[myWebView mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString: searchURL]]];
This is a simple example, you can probably work from here
grabberslasher is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Google Calendars in iPhone SimonBS iPhone 4 Oct 26, 2011 10:15 AM
Open media links in browser w/ Quicktime, not VLC PkennethV Mac Basics and Help 0 Aug 1, 2011 11:15 PM
Waving MacBook around on in Chrome does what Snookerman MacBook Pro 6 Feb 10, 2011 06:56 PM
Apple and Google Included in Suit Over Embedded Interactive Media in Browsers MacRumors News Discussion 121 Oct 13, 2009 05:37 PM
firefox google searchbar question OrangeCuse44 Mac Applications and Mac App Store 2 Jun 4, 2007 12:02 PM

All times are GMT -5. The time now is 05:25 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC