41 lines
652 B
Plaintext
41 lines
652 B
Plaintext
//
|
|
// MADPropertiesReader.m
|
|
// MAD
|
|
//
|
|
// Created by Vincent Spader on 2/24/07.
|
|
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "ShortenPropertiesReader.h"
|
|
#import "ShortenDecoder.h"
|
|
|
|
@implementation ShortenPropertiesReader
|
|
|
|
+ (NSDictionary *)propertiesForSource:(id<CogSource>)source
|
|
{
|
|
NSDictionary *properties;
|
|
ShortenDecoder *decoder;
|
|
|
|
decoder = [[ShortenDecoder alloc] init];
|
|
if (![decoder open:source])
|
|
{
|
|
[decoder release];
|
|
return nil;
|
|
}
|
|
|
|
properties = [decoder properties];
|
|
|
|
[decoder close];
|
|
[decoder release];
|
|
|
|
return properties;
|
|
}
|
|
|
|
|
|
+ (NSArray *)fileTypes
|
|
{
|
|
return [ShortenDecoder fileTypes];
|
|
}
|
|
|
|
@end
|