MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ShowFileExplorer

Method ShowFileExplorer

Source/Engine/Platform/Mac/MacFileSystem.cpp:145–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145bool MacFileSystem::ShowFileExplorer(const StringView& path)
146{
147 String fullPath = FileSystem::ConvertRelativePathToAbsolute(path);
148 NSString* selectFile = AppleUtils::ToNSString(fullPath);
149 NSString* inFileViewerRootedAtPath = AppleUtils::ToNSString(String::Empty);
150 if (FileSystem::DirectoryExists(fullPath))
151 {
152 // Show folder contents
153 inFileViewerRootedAtPath = selectFile;
154 selectFile = nullptr;
155 }
156 return [[NSWorkspace sharedWorkspace] selectFile: selectFile inFileViewerRootedAtPath: inFileViewerRootedAtPath];
157}
158
159#endif

Callers 8

CreateImportPathUIMethod · 0.45
InitMainMenuMethod · 0.45
InitializeMethod · 0.45
OutputLogWindowMethod · 0.45
OnRowRightClickMethod · 0.45
OnMouseUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected