• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: unique temporary file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unique temporary file name


  • Subject: Re: unique temporary file name
  • From: Ryan Britton <email@hidden>
  • Date: Tue, 16 May 2006 16:51:52 -0700

Here's a snippet from some code I use to get a unique, temporary path name:

CFUUIDRef uuid = CFUUIDCreate(NULL);
CFStringRef uuidString = CFUUIDCreateString(NULL, uuid);
CFRelease(uuid);
[self setTemporaryStore:[NSTemporaryDirectory() stringByAppendingPathComponent:(NSString *) uuidString]];
CFRelease(uuidString);



On May 16, 2006, at 4:42 PM, Angelo Chen wrote:

Hi,

  How to obtain a unique file name from a directory? thanks


---------------------------------
Sneak preview the all-new Yahoo.com. It's not radically different. Just radically better.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: unique temporary file name
      • From: Deborah Goldsmith <email@hidden>
References: 
 >unique temporary file name (From: Angelo Chen <email@hidden>)

  • Prev by Date: unique temporary file name
  • Next by Date: Re: unique temporary file name
  • Previous by thread: unique temporary file name
  • Next by thread: Re: unique temporary file name
  • Index(es):
    • Date
    • Thread