could someone please help me figure out how to put a google search bar in the web browser I'm making in xcode.
How do you currently have your webView set up to get page URLs? Do you have it connected to an NSTextField via takeStringURLFrom: or are you pushing URLs to it with setMainFrameURL:?no i'm i am trying to program it into my web browser i'm making in xcode.
NSString *searchURL = [NSString stringWithFormat:@"http://www.google.com/search?q=%@", [googleField stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSString *searchURL = [NSString stringWithFormat:@"http://www.google.com/search?q=%@", [GoogleSearchField stringValue]];
Expected expression before NSString
- (BOOL)textFieldShouldReturnUITextField *)textField
- (BOOL)textFieldShouldReturn:(UITextField *)textField
NSString *searchURL = [NSString stringWithFormat:@"http://", [urlField stringValue], NSString stringWithFormat:@".com"];
NSString *searchURL = [NSString stringWithFormat:@"http://%@%@", [textField text], @".com"];
NSString *searchURL = [NSString stringWithFormat"http://", [urlField stringValue], NSString stringWithFormat
".com"]
NSString *searchURL = [NSString stringWithFormat:@"http://%@.com", [urlField stringValue]]