Posts

Post marked as solved
4 Replies
0 Views
Thank you very much, that confirms what I suspected. On windows, one can use the _SH_DENYRD flag when calling open and this locks the file so any other process using any available file opening method will be prevented access to it. I was merely looking for a similar functionality on macOS. I need to prevent any other process (using any open method that's not under my control) from accessing a file until I'm done with what I want to do with it. I guess my best option would be chmod then.
Post not yet marked as solved
6 Replies
0 Views
Since the issue is not 100% reproducible it's hard to test easily, but you might be right (and that was my first idea): it should be related to something like this.I had in mind it would be linked to some file present in the default folder, and that file being "previewed" by the OS causing the crash. Maybe a QuickLook plugin that fails to process the file and crashes (since it does not happen always and not on every mac computer or logged user).I'll investigate more and try to answer here if I find something.
Post not yet marked as solved
6 Replies
0 Views
Yes, but you are setting it after you get your NSSavePanel instance.My crash log is inside the NSSavePanel() call 😟I can contact juce, but since it's inside a factory method of MacOS, I'm not sure they can do much about it.Thanks anyway,ChrisPS: Somebody else has an idea?
Post not yet marked as solved
6 Replies
0 Views
Hi,I'm using MacOS 10.12.2 and Xcode 8.2.1.As for the code, I'm not using it directly it's from the Juce toolkit, but is there any configuration to be done before calling a factory method??The code crashes when it calls +[NSSavePanel savePanel] (but not 100% of the time)Is there anything to configure before getting the NSSavePanel instance?Thanks,Chris