Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
September 21, 2017, 04:02:23 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: 16-5 with Append  (Read 1511 times)
varsis
Newbie
*
Posts: 1


Email
« on: September 28, 2010, 08:27:29 AM »

Code: (Objective-C)
@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.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 classroomM.com. All rights reserved.