Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Open zip file through code in mac os

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 579
    Comment on it

    Method to open zip file

    -(void)unZipImages:(NSArray*)arguments
    {
        NSTask *unzipTask = [[NSTask alloc] init];
        [unzipTask setLaunchPath:@"/user/bin/unzip"]; //this is where the unzip application is on the system.
    
        [unzipTask setCurrentDirectoryPath:NSTemporaryDirectory()]; //this means we only have to pass one argument, the path to the zip.
    
        [unzipTask setArguments:arguments];
        [unzipTask launch];
        [NSThread sleepForTimeInterval:5];
        NSLog(@"extracted.....");
    }
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: