@interface NSString (TempFiles)
+(NSString *) temporaryFileName;
-(NSString *) appendTemporaryFileName;
@end
@implementation NSString (TempFiles)
+(NSString *) temporaryFileName {
return [[NSProcessInfo processInfo] globallyUniqueString];
}
-(NSString *) appendTemporaryFileName {
return [self stringByAppendingString:[NSString temporaryFileName]];
}
@end
I thought it might be good to include a append, working some files my self, i find that a lot of the time you do get this and usually it would be a "Copy" or 1,2 ect... added on.