discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $GNUSTEP_DEFAULTS_DIR not set/exported in GNUstep.sh


From: Simon Stapleton
Subject: Re: $GNUSTEP_DEFAULTS_DIR not set/exported in GNUstep.sh
Date: Sun, 1 Aug 2004 09:50:11 +0200


On 30 Jul 2004, at 19:03, Nicola Pero wrote:

Interesting idea - maybe we could have a library exposing NSUserDefaults
with a simple C interface.

If it was engineered to look something like the core foundation stuff in OSX, it would make real cross-platform buils a lot easier for those that are hooking in at a 'C' level. Otherwise, an easier solution would be to refactor out defaults handling to a (compile-time) pluggable module that either uses a 'C' interface on non *step platforms, or an ObjC module for *step.

Basically, in WindowMaker, you define a 'C' interface to it's internal defaults. Then, at compile time, that interface is either provided by the existing code, or by a piece of ObjC that talks to NSUserDefaults with a C wrapper. if you see what I mean. This would require no changes to GNUstep itself, and would allow WM to work happily with GNUstep and OSX, but would require changes to WindowMaker (and similar for any other app that wants to do defaults the *step way _and_ via it's own method.

Simon


--
AppleCare.  Now _there's_ an oxymoron for you.
--
PGP Key Id : 0x50D0698D





reply via email to

[Prev in Thread] Current Thread [Next in Thread]