mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
git-svn-id: svn://localhost/ardour2/branches/3.0@8018 d708f5d6-7413-0410-9779-e7cbd77b26cf
19 lines
454 B
Text
19 lines
454 B
Text
#include <CoreFoundation/CFLocale.h>
|
|
#import <CoreFoundation/CFString.h>
|
|
#import <Foundation/NSString.h>
|
|
#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;
|
|
}
|