mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
Use macOS API to open finder at given path
This commit is contained in:
parent
201617f03b
commit
cd7c981e6e
2 changed files with 11 additions and 14 deletions
|
|
@ -18,3 +18,12 @@ cocoa_open_url (const char* uri)
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool
|
||||
cocoa_open_folder (const char* path)
|
||||
{
|
||||
NSString* struri = [[NSString alloc] initWithUTF8String:path];
|
||||
bool rv = [[NSWorkspace sharedWorkspace] selectFile:nil inFileViewerRootedAtPath:struri];
|
||||
[struri release];
|
||||
return rv;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue