Ok I am making a youtube downloader it works fine and all but I want to implement a NSSAVEPanel. My youtube downloader currently saves the file to the desktop and uses the NSDateFormatter to save the files as the name of the current date. But I want to use a save panel and I am getting trouble.
Can anyone help me please?
Code:
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyy-MM-dd-hh-mma"];
NSString *dateString = [dateFormat stringFromDate: [NSDate date]];
[dateFormat release];
NSString *randomFilename = [NSString stringWithFormat: @"download_%@", dateString];
Can anyone help me please?