• 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: Temp filename function?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Temp filename function?


  • Subject: Re: Temp filename function?
  • From: Vince DeMarco <email@hidden>
  • Date: Wed, 15 Aug 2001 10:11:52 -0700

On Tuesday, August 14, 2001, at 11:01 PM, John C. Randolph wrote:

I have an app I'm writing that needs to write into a temp file, then rename/move it when the user saves it.

IIRC, there was a function in OpenStep that gave you a guaranteed-unique name for a temporary file. Does this still exist?

advTHANKSance,


Try this.

NSPathUtilities.h:FOUNDATION_EXPORT NSString *NSTemporaryDirectory(void);

or use the mktemp() function in the c-library

NAME
mktemp, mkstemp - make temporary file name (unique)

SYNOPSIS
#include <unistd.h>

char *
mktemp(char *template)

int
mkstemp(char *template)


References: 
 >Temp filename function? (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Temp filename function?
  • Next by Date: Re: Mac OS X 10.1 Dock Menu Description and APIs
  • Previous by thread: Re: Temp filename function?
  • Next by thread: NSImage in NSTableView looks like poop
  • Index(es):
    • Date
    • Thread