Mercurial > dwindows
comparison mac/dw.m @ 1115:03cd2f3e929d
Fixed a documentation and template error regarding dw_browse() return code.
Also fixed the Windows success return code to match what is expected.
And switched to using the error constants for returns.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 04 Aug 2011 21:34:53 +0000 |
parents | 404b639f096b |
children | 9ca5de2e59f8 |
comparison
equal
deleted
inserted
replaced
1114:e3f0528f6c16 | 1115:03cd2f3e929d |
---|---|
9226 */ | 9226 */ |
9227 int dw_browse(char *url) | 9227 int dw_browse(char *url) |
9228 { | 9228 { |
9229 NSURL *myurl = [NSURL URLWithString:[NSString stringWithUTF8String:url]]; | 9229 NSURL *myurl = [NSURL URLWithString:[NSString stringWithUTF8String:url]]; |
9230 [[NSWorkspace sharedWorkspace] openURL:myurl]; | 9230 [[NSWorkspace sharedWorkspace] openURL:myurl]; |
9231 return 0; | 9231 return DW_ERROR_NONE; |
9232 } | 9232 } |