Challange completed


I’ve completed the challenge.

Changing the method: - (BOOL)readFromURL:(NSURL *)absoluteUrl ofType:(NSString *)typeName error:(NSError **)outError
to this:

[code]- (BOOL)readFromURL:(NSURL *)absoluteUrl ofType:(NSString *)typeName error:(NSError **)outError
//which file are we getting the zip info for?
NSString *filename = [absoluteUrl path];

if ([filename hasSuffix:@"zip"]) {
//prepare the task object

	[task setLaunchPath:@"/usr/bin/zipinfo"];
	NSArray *args = [NSArray arrayWithObjects:@"-1", filename, nil];
	[task setArguments:args];
else if ([filename hasSuffix:@"tar"]) {
	[task setLaunchPath:@"/usr/bin/tar"];
	NSArray *args = [NSArray arrayWithObjects:@"tf", filename, nil];
	[task setArguments:args];
else if ([filename hasSuffix:@"tgz"]) {
	[task setLaunchPath:@"/usr/bin/tar"];
	NSArray *args = [NSArray arrayWithObjects:@"tzf", filename, nil];
	[task setArguments:args];

//create the pipe to read from

next add the following UTI’s for .tar e .tgz files:

Hoping to being useful for someone salute everybody.