[openbeos] Re: BAppPrefs
- From: Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Mon, 30 Aug 2004 16:23:56 +0200 (MEST)
On Mon, 30 Aug 2004, Axel Dörfler wrote:
Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx> wrote:
On Mon, 30 Aug 2004, Axel Dörfler wrote:
For example, including automated settings file support into
BApplication.
Mmh, I don't really see, why settings file support should go into
BApplication (unless you're talking about session support, which
would
definitely benefit from being located there). At maximum I see a
BApplication::GetSettingsDirectory(BDirectory*), although an
equivalent to
find_directory() may even be better, so that one could also get the
settings directory of another application.
Because file settings are usually bound to a specific application. I
think it might be beneficial to have a standard method for this
because:
a) finding the settings of a certain app and vice versa - have a look
to config/settings and try to map the files in there to existing apps
b) removing the settings when removing an application from your disk
c) probably having one file format for all settings files
Sure, these are valid points, but they don't explain why you would make
the functionality available through BApplication. Especially with a) in
mind I would find it strange to ask my BApplication to get information
about another app. BRoster seems more suitable, or probably even better
another class.
Wouldn't be session support something like flattening the whole running
app?
Aside that this would probably be overkill, would quite likely also be
more work for the developer. I believe, we already discussed this on GE.
See? That's why we're doing R5 first ;-)
Yep. :-)
CU, Ingo
- Follow-Ups:
- [openbeos] Re: BAppPrefs
- From: Axel Dörfler
- References:
- [openbeos] Re: BAppPrefs
- From: Axel Dörfler
Other related posts:
- » [openbeos] BAppPrefs
- » [openbeos] Re: BAppPrefs
- » [openbeos] Re: BAppPrefs
- » [openbeos] Re: BAppPrefs
- » [openbeos] Re: BAppPrefs
- » [openbeos] Re: BAppPrefs
- » [openbeos] Re: BAppPrefs
- » [openbeos] Re: BAppPrefs
On Mon, 30 Aug 2004, Axel Dörfler wrote:For example, including automated settings file support into BApplication.Mmh, I don't really see, why settings file support should go into BApplication (unless you're talking about session support, which would definitely benefit from being located there). At maximum I see a BApplication::GetSettingsDirectory(BDirectory*), although an equivalent to find_directory() may even be better, so that one could also get the settings directory of another application.
Because file settings are usually bound to a specific application. I think it might be beneficial to have a standard method for this because: a) finding the settings of a certain app and vice versa - have a look to config/settings and try to map the files in there to existing apps b) removing the settings when removing an application from your disk c) probably having one file format for all settings files
Wouldn't be session support something like flattening the whole running app?
Yep. :-)
- [openbeos] Re: BAppPrefs
- From: Axel Dörfler
- [openbeos] Re: BAppPrefs
- From: Axel Dörfler