View Single Post
Old 03-25-2010, 11:46 AM   #2
Soundbytes
Human being with feelings
 
Soundbytes's Avatar
 
Join Date: May 2006
Posts: 58
Default

If you want to store data persistently to have it remembered between plugin sessions you will have to write it into a file and read that when the information is needed again.
In windows you would write the data into the registry but that is not available under Mac OS. In older win versions applications used ini files to store their settings. You could also use an xml file to store settings or preferences.
I am new to Mac OSX and don't know how it is supposed to be done there. I have seen that applications have a standardized preferences dialog but that is not available for plugins as far as I am aware.

Anyway the ini file solution should of course work fine there as well.
Check out the ini file parser in swell-ini.cpp. This might be what you are looking for.
I would think the best location to store an ini file might be inside the application bundle. Or is there any reason to better avoid this?

Andreas
__________________
www.soundbytes.de
Soundbytes is offline   Reply With Quote