Skip to content

Commit

Permalink
Fixed title not being shown when calling ofSystemLoadDialog in macos (#…
Browse files Browse the repository at this point in the history
…6590)

#changelog #osx
  • Loading branch information
roymacdonald authored Jul 15, 2020
1 parent 5078acf commit 29f5ede
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/openFrameworks/utils/ofSystemUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,9 @@ ofFileDialogResult ofSystemLoadDialog(string windowTitle, bool bFolderSelection,
[loadDialog setResolvesAliases:YES];

if(!windowTitle.empty()) {
[loadDialog setTitle:[NSString stringWithUTF8String:windowTitle.c_str()]];
// changed from setTitle to setMessage
// https://stackoverflow.com/questions/36879212/title-bar-missing-in-nsopenpanel
[loadDialog setMessage:[NSString stringWithUTF8String:windowTitle.c_str()]];
}

if(!defaultPath.empty()) {
Expand Down

0 comments on commit 29f5ede

Please sign in to comment.