A safe way is to use mkstemp(3).
More Related Contents:
- Getting date from [NSDate date] off by a few hours
- NSString property: copy or retain?
- Understanding NSString comparison
- Cannot add items to an NSMutableArray ivar
- How to do a natural sort on an NSArray?
- Xcode build failure “Undefined symbols for architecture x86_64”
- What is the best way to solve an Objective-C namespace collision?
- NULL vs nil in Objective-C
- Comparing Strings in Cocoa
- Is there a way to suppress warnings in Xcode?
- How to use performSelector:withObject:afterDelay: with primitive types in Cocoa?
- Converting RGB data into a bitmap in Objective-C++ Cocoa
- Generate a random alphanumeric string in Cocoa
- How do you set your Cocoa application as the default web browser?
- Parse Plist (NSString) into NSDictionary
- How do I create a NSTimer on a background thread?
- Avoiding “NSArray was mutated while being enumerated”
- Gap above NSMenuItem custom view
- NSTask not picking up $PATH from the user’s environment
- Cocoa/Objective-C : Best Practice to parse XML Document?
- How to use NSScanner?
- Getting a random object from NSArray without duplication
- Launching an Mac App with Objective-C/Cocoa
- Check whether or not the current thread is the main thread
- Flatten an NSArray
- Creating breakpoint in Xcode for unrecognized selector
- How to get the width of an NSString?
- Writing a privileged helper tool with SMJobBless()
- How to Get the Display Name with the Display ID in Mac OS X?
- Executing shell commands with NSTask – Objective-C Cocoa