[Lazarus] Looking for a general text editor

Sven Barth pascaldragon at googlemail.com
Sat Feb 18 16:13:56 CET 2012


Am 18.02.2012 07:37 schrieb "Felipe Monteiro de Carvalho" <
felipemonteiro.carvalho at gmail.com>:
>
> On Fri, Feb 17, 2012 at 9:49 PM, Sven Barth <pascaldragon at googlemail.com>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120218/4f5ed6df/attachment-0003.html>


More information about the Lazarus mailing list