Mikuro
Crotchety UI Nitpicker
I'm designing a program that needs support for simple plugins. These plugins will have one function (maybe two), and that's all. The plugins will need to be able to use the Accelerate framework, and if possible Cocoa as well (not for any GUI stuff, but NSSets make my life easier). Ideally, I'd like performance to be as good as calling a regular C function.
It seems like a simple enough task, but I have no idea where to start. I see things in XCode's New Project window like "static Cocoa library", "dynamic Cocoa library", "generic C++ plugin". I'm not really sure how any of these work.
So, I have three main questions:
What's the best way to make such plugins?
How do I load them at runtime?
How do I access their functions?
Any advice would be greatly appreciated. I don't want to jump in using the first method that I can get working only to realize it was not the right choice.
It seems like a simple enough task, but I have no idea where to start. I see things in XCode's New Project window like "static Cocoa library", "dynamic Cocoa library", "generic C++ plugin". I'm not really sure how any of these work.
So, I have three main questions:
What's the best way to make such plugins?
How do I load them at runtime?
How do I access their functions?
Any advice would be greatly appreciated. I don't want to jump in using the first method that I can get working only to realize it was not the right choice.