2010-11-13 00:14:48 -05:00
|
|
|
#include <CoreFoundation/CFLocale.h>
|
|
|
|
#import <CoreFoundation/CFString.h>
|
|
|
|
#import <Foundation/NSString.h>
|
2013-07-29 17:15:04 -04:00
|
|
|
#import <Foundation/NSURL.h>
|
2010-11-13 00:14:48 -05:00
|
|
|
#import <Foundation/NSAutoreleasePool.h>
|
|
|
|
#import <AppKit/NSWorkspace.h>
|
|
|
|
|
|
|
|
bool
|
|
|
|
cocoa_open_url (const char* uri)
|
|
|
|
{
|
|
|
|
NSString* struri = [[NSString alloc] initWithUTF8String:uri];
|
|
|
|
NSURL* nsurl = [[NSURL alloc] initWithString:struri];
|
|
|
|
|
|
|
|
bool ret = [[NSWorkspace sharedWorkspace] openURL:nsurl];
|
|
|
|
|
|
|
|
[struri release];
|
|
|
|
[nsurl release];
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|