summaryrefslogtreecommitdiff
path: root/cocoa/url.m
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/url.m')
-rw-r--r--cocoa/url.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/cocoa/url.m b/cocoa/url.m
index 38d637e6e..33c8bfe61 100644
--- a/cocoa/url.m
+++ b/cocoa/url.m
@@ -22,7 +22,6 @@
#import <Cocoa/Cocoa.h>
-#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ )
char *url_to_path(const char *url)
{
@@ -32,6 +31,6 @@ char *url_to_path(const char *url)
char *path_to_url(const char *path)
{
- UNIMPL();
- return NULL;
+ return strdup( [[[NSURL fileURLWithPath: [NSString stringWithUTF8String: path]]
+ absoluteString] UTF8String] );
}