Referencing this question from 2 years ago...
https://developer.apple.com/forums/thread/100321
and this from CFBundle documentation...
"When the last reference to the CFBundle object is released and it is finally deallocated, then the code will be unloaded if it is still loaded and if the executable is of a type that supports unloading."
https://developer.apple.com/documentation/corefoundation/cfbundle?language=objc
If I am writing a Cocoa bundle (e.g. an audio VST plugin) that is third party to the applications (e.g. digital audio workstations DAWs) that load and run it, how can I prevent an application from trying to unload it? Can I flag it in some way to force it to stay in memory until the application quits?
Thank you
https://developer.apple.com/forums/thread/100321
and this from CFBundle documentation...
"When the last reference to the CFBundle object is released and it is finally deallocated, then the code will be unloaded if it is still loaded and if the executable is of a type that supports unloading."
https://developer.apple.com/documentation/corefoundation/cfbundle?language=objc
If I am writing a Cocoa bundle (e.g. an audio VST plugin) that is third party to the applications (e.g. digital audio workstations DAWs) that load and run it, how can I prevent an application from trying to unload it? Can I flag it in some way to force it to stay in memory until the application quits?
Thank you