The below code crashes my plugin:
NSOpenPanel *openFileDig = [NSOpenPanel openPanel];
[openFileDig setCanChooseFiles:true];
[openFileDig setCanChooseDirectories:false];
[openFileDig setAllowsMultipleSelection:false];
[openFileDig setDirectory:NSHomeDirectory()];
if ([openFileDig runModal] == NSOKButton)
{
.........
}
Without doing anything, in about 3 minutes, while the openFileDig
is running, the plugin will disappear. Can someone tell me why?