#9443: API for unified preference storing ------------------------------------+------------------- Reporter: mks | Owner: axeld Type: enhancement | Status: new Priority: low | Milestone: R1 Component: Kits/Application Kit | Version: Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ------------------------------------+------------------- Comment (by leavengood): +1 to this idea. While the simple version is decent, it also might be nice to create a BPreferences class which may just wrap BMessage but can provide some nicer semantics. I know quite a few applications within Haiku's repo have already done that, like ShowImage: http://cgit.haiku- os.org/haiku/tree/src/apps/showimage/ShowImageSettings.cpp The above makes it such that a default value can be provided when calling for a setting, and that will be returned if the setting was not stored in the settings file. Though I'm not sure if that is better than having all the default values defined in one place. Then of course this leads to whether we should try to mimic the OS X defaults system. I don't know that system well enough to know if it is worth emulating. -- Ticket URL: <http://dev.haiku-os.org/ticket/9443#comment:1> Haiku <http://dev.haiku-os.org> Haiku - the operating system.