source: trunk/Sparkle/SUUnarchiver.m @ 1046

Revision 134, 834 bytes checked in by speck, 4 years ago (diff)

Simple display of suspects in preference panel.

Line 
1//
2//  SUUnarchiver.m
3//  Sparkle
4//
5//  Created by Andy Matuschak on 3/16/06.
6//  Copyright 2006 Andy Matuschak. All rights reserved.
7//
8
9
10#import "Sparkle.h"
11#import "SUUnarchiver.h"
12#import "SUUnarchiver_Private.h"
13
14@implementation SUUnarchiver
15
16extern NSMutableArray *__unarchiverImplementations;
17
18+ (SUUnarchiver *)unarchiverForPath:(NSString *)path
19{
20    NSEnumerator *implementationEnumerator = [[self _unarchiverImplementations] objectEnumerator];
21    id current;
22    while ((current = [implementationEnumerator nextObject]))
23    {
24        if ([current _canUnarchivePath:path])
25            return [[[current alloc] _initWithPath:path] autorelease];
26    }
27    return nil;
28}
29
30- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], archivePath]; }
31
32- (void)setDelegate:del
33{
34    delegate = del;
35}
36
37- (void)start
38{
39    // No-op
40}
41
42@end
Note: See TracBrowser for help on using the repository browser.