|
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'talways globally unique since the precision of the date output only evaluatedto 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 andthe usage of ':' causes problems. Therefor I propose the following patch.Yet if some apps already rely on the date format, I've included anotheralternative. 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.
[Prev in Thread] | Current Thread | [Next in Thread] |