mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-25 16:07:49 +01:00
working nag screen url opening on OS X
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4195 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2ed2be3557
commit
0fff4a363c
2 changed files with 11 additions and 4 deletions
|
|
@ -164,8 +164,15 @@ ARDOUR_UI::platform_setup ()
|
|||
}
|
||||
|
||||
bool
|
||||
cocoa_open_uri (const char* uri)
|
||||
cocoa_open_url (const char* uri)
|
||||
{
|
||||
NSURL* nsurl = [NSURL initWithString:uri];
|
||||
return [[NSWorkspace sharedWorkspace] openURL:nsurl];
|
||||
NSString* struri = [[NSString alloc] initWithUTF8String:uri];
|
||||
NSURL* nsurl = [[NSURL alloc] initWithString:struri];
|
||||
|
||||
bool ret = [[NSWorkspace sharedWorkspace] openURL:nsurl];
|
||||
|
||||
[struri release];
|
||||
[nsurl release];
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ NagScreen::open_uri (const char* uri)
|
|||
|
||||
return true;
|
||||
#else
|
||||
extern bool cocoa_open_uri (const char*);
|
||||
extern bool cocoa_open_url (const char*);
|
||||
return cocoa_open_url (uri);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue