bug-gnustep
[Top][All Lists]
Advanced

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

Re: NSProcessInfo globallyUniqueString


From: Richard Frith-Macdonald
Subject: Re: NSProcessInfo globallyUniqueString
Date: Wed, 7 Aug 2002 17:16:53 +0100

On Monday, July 22, 2002, at 01:41 PM, David Ayers wrote:

Hallo all,

on my maching the globallyUniqueString produced by NSProcessInfo wasn't
always globally unique since the precision of the date output only evaluated
to seconds.

Thanks ... your fix didn't absolutely guarantee uniqueness, so I added a lock
protected counter too.

Also some of apps I know use this string to create filenames and
the usage of ':' causes problems. Therefor I propose the following patch.
Yet if some apps already rely on the date format, I've included another
alternative. But I believe, relying on the format of this string is a bug.

I think relying on it to form a legal filename might be considered a bug as well, but the current implementation should be ok on unix style machines at least.




reply via email to

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