You need to escape the special characters to make it work properly. Something like:
[NSURL URLWithString:[googlSearchString stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]];
More Related Contents:
- Exception thrown in NSOrderedSet generated accessors
- Cocoa Autolayout: content hugging vs content compression resistance priority
- NSString to NSDate
- Should I use NSDecimalNumber to deal with money?
- Implementing a 30 day time trial [closed]
- Register as Login Item with Cocoa?
- Is there a proper way to handle overlapping NSView siblings?
- Xcode 6 iOS Creating a Cocoa Touch Framework – Architectures issues
- How do copy and mutableCopy apply to NSArray and NSMutableArray?
- What’s the difference between data source and delegate?
- Any cocoa source code for AES encryption decryption?
- What’s the optimum way of storing an NSDate in NSUserDefaults?
- Using frameworks in a command line tool
- Remove Sandboxing
- What is the best Core Image filter to produce black and white effects?
- Mac / Cocoa – Getting a list of windows using Accessibility API
- How can I duplicate, or copy a Core Data Managed Object?
- How to launch application and bring it to front using Cocoa api?
- Why NSWindow without styleMask:NSTitledWindowMask can not be keyWindow?
- How to use NSTask as root?
- Strip Non-Alphanumeric Characters from an NSString
- Can I receive a callback whenever an NSPasteboard is written to?
- Swift protocols: method does not override any method from its superclass
- How to get a list of all open NSWindow from all running application?
- Key-Value-Observing a to-many relationship in Cocoa
- Placing an NSTimer in a separate thread
- NSDate between two given NSDates
- What is the best way to redirect stdout to NSTextView in Cocoa?
- How do I draw an NSString at an angle?
- Best way to do interprocess communication on Mac OS X