From 479fa4350100dc96382f0b6b09b2b9036d170f04 Mon Sep 17 00:00:00 2001 From: Maxim Nikolenko Date: Mon, 1 Apr 2024 15:33:15 +0300 Subject: open folder support for mac --- indra/llwindow/llwindowmacosx-objc.mm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra/llwindow/llwindowmacosx-objc.mm') 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() { -- cgit v1.2.3