Am 18.02.2012 07:37 schrieb "Felipe Monteiro de Carvalho" < [email protected]>: > > On Fri, Feb 17, 2012 at 9:49 PM, Sven Barth <[email protected]> wrote: > > You are wrong. The Registry unit of FPC is implemented in a Cross Plattform > > way. On non-Windows plattforms it uses a XML file to store the values. As > > long as you don't need security related stuff (access control, etc) or need > > to access Registry keys of the OS or other applications this should be > > sufficient. > > Still, I would say that using the Registry unit like that is a *very > bad* practice. Where will it keep the xml files?
In the end the XML registry is conceptually similar to XMLConfig (or however it's called ^^). But everyone must decide for oneself whether that unit is suitable or not. Just shouting "It's a hack" is not helpful. Regarding the location: the Registry files are placed in the directory returned by GetAppConfigDir. A global variable controls whether this path should be a global one or not (yes, THIS is a detail I personally don't consider as a beautiful solution, but I don't have a better solution right now) > It is also very bad practice that the application already has .ini > configuration file and suddenly the recently opened files manager > would use a different file in a different place to store that info... Here I definitely agree with you as I've already written to Graeme. Regards, Sven
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
