trying to track down why undo doesn't remove xfade rendering on OS X
[ardour.git] / libs / pbd / cocoa_open_uri.mm
1 #include <CoreFoundation/CFLocale.h>
2 #import  <CoreFoundation/CFString.h>
3 #import  <Foundation/NSString.h>
4 #import  <Foundation/NSAutoreleasePool.h>
5 #import  <AppKit/NSWorkspace.h>
6
7 bool
8 cocoa_open_url (const char* uri)
9 {
10         NSString* struri = [[NSString alloc] initWithUTF8String:uri];
11         NSURL* nsurl = [[NSURL alloc] initWithString:struri];
12
13         bool ret = [[NSWorkspace sharedWorkspace] openURL:nsurl];
14
15         [struri release];
16         [nsurl release];
17
18         return ret;
19 }