implement sharing in iOS, add OpenGL renderer in OSX window
This commit is contained in:
@@ -164,8 +164,14 @@ void App::display_file(std::string path)
|
||||
void App::share_file(std::string path)
|
||||
{
|
||||
if (path.empty())
|
||||
{
|
||||
message_box("Sharing failed", "Please save the document before sharing it.");
|
||||
return;
|
||||
}
|
||||
#ifdef __IOS__
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[ios_view share_file:[NSString stringWithUTF8String:path.c_str()]];
|
||||
});
|
||||
#elif __OSX__
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[osx_view share_file:[NSString stringWithUTF8String:path.c_str()]];
|
||||
|
||||
Reference in New Issue
Block a user