When I get a NSString from the following it returns it in brackets and Quotes and there for the mailto doesn't work
The NSLog prints:
encodedURLString mailto: ("name@someone.com")
Staff *staff = [staffArrayController selectedObjects];
NSString *encodedTo = [staff valueForKey
"email"];
NSString *encodedURLString = [NSString stringWithFormat
"mailto:%@", encodedTo];
NSLog(@" encodedURLString %@",encodedURLString);
NSURL *mailtoURL = [NSURL URLWithString:encodedURLString];
[[NSWorkspace sharedWorkspace] openURL:mailtoURL];
The NSLog prints:
encodedURLString mailto: ("name@someone.com")
Staff *staff = [staffArrayController selectedObjects];
NSString *encodedTo = [staff valueForKey
NSString *encodedURLString = [NSString stringWithFormat
NSLog(@" encodedURLString %@",encodedURLString);
NSURL *mailtoURL = [NSURL URLWithString:encodedURLString];
[[NSWorkspace sharedWorkspace] openURL:mailtoURL];