On 2006-05-10 19:27:10 +0200 Quentin Mathé <[EMAIL PROTECTED]> wrote:
[...]
> 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.
[...]

Sounds good but it wouldn't make much sense re-computing values over and over 
again if they aren't going to change during uptime, like CPU Name, CPU 
Frequency or Total Memory. Rather have it computed/retrieved once and cache it.

-- 
Chris


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

Répondre à