diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2024-04-01 15:33:15 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2024-04-01 15:33:15 +0300 |
commit | 479fa4350100dc96382f0b6b09b2b9036d170f04 (patch) | |
tree | e089b51f9eb58b676df675f4f46907c1da310b86 /indra/llwindow/llwindowmacosx-objc.mm | |
parent | 836f8dc26f2041aea51c5c953b99f34859db6387 (diff) |
open folder support for mac
Diffstat (limited to 'indra/llwindow/llwindowmacosx-objc.mm')
-rw-r--r-- | indra/llwindow/llwindowmacosx-objc.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx-objc.mm b/indra/llwindow/llwindowmacosx-objc.mm index 690fe058db..56d1798dcf 100644 --- a/indra/llwindow/llwindowmacosx-objc.mm +++ b/indra/llwindow/llwindowmacosx-objc.mm @@ -462,6 +462,13 @@ long showAlert(std::string text, std::string title, int type) return ret; } +void openFolderWithFinder(const char *folder_path) +{ + @autoreleasepool { + NSString *folderPathString = [NSString stringWithUTF8String:folder_path]; + [[NSWorkspace sharedWorkspace] openFile:folderPathString withApplication:@"Finder"]; + } +} /* GLViewRef getGLView() { |