On 5/10/06, Quentin Mathé <[EMAIL PROTECTED]> wrote:
Le 10 mai 06 à 17:57, Yen-Ju Chen a écrit :

> I notice there are several system-related patches for
> EtoileMenuServer.
> I think we will have more and more these stuffs.
> Is it possible that we can centralized it in a single library or
> bundle ?

Yes, I think that something we should have by relying on defaults.
Just query NSUserDefaults for +standardSystemDefaults, new factory
method which returns a custom class cluster object to handle system
related defaults (this class could be provided through a bundle).
Then when you call objectForKey: @"CPUName", the value is computed on
the fly. Finally the value can be obtained by passing a request to
System Tools Backend, in fact it should be the most common way to
handle -objectForKey: and -setObject: forKey: calls.

hm, rather than NSUserDefaults, wouldn't it be an ideal case for CoreObject ?

--
Nicolas Roard
"I love deadlines. I like the whooshing sound they make as they fly
by." -- Douglas Adams

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à