| Revision 128,
1.4 KB
checked in by speck, 4 years ago
(diff) |
|
Fixed missing display of update notes in Sparkle. Embedded Sparkle so subversion has the proper version instead of having to download Sparkle and apply several patches.
|
| Line | |
|---|
| 1 | // |
|---|
| 2 | // SUUnarchiver_Private.m |
|---|
| 3 | // Sparkle |
|---|
| 4 | // |
|---|
| 5 | // Created by Andy Matuschak on 6/17/08. |
|---|
| 6 | // Copyright 2008 Andy Matuschak. All rights reserved. |
|---|
| 7 | // |
|---|
| 8 | |
|---|
| 9 | #import "SUUnarchiver_Private.h" |
|---|
| 10 | |
|---|
| 11 | @implementation SUUnarchiver (Private) |
|---|
| 12 | |
|---|
| 13 | - _initWithPath:(NSString *)path |
|---|
| 14 | { |
|---|
| 15 | if ((self = [super init])) |
|---|
| 16 | archivePath = [path copy]; |
|---|
| 17 | return self; |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | - (void)dealloc |
|---|
| 21 | { |
|---|
| 22 | [archivePath release]; |
|---|
| 23 | [super dealloc]; |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | + (BOOL)_canUnarchivePath:(NSString *)path |
|---|
| 27 | { |
|---|
| 28 | return NO; |
|---|
| 29 | } |
|---|
| 30 | |
|---|
| 31 | - (void)_notifyDelegateOfExtractedLength:(long)length |
|---|
| 32 | { |
|---|
| 33 | if ([delegate respondsToSelector:@selector(unarchiver:extractedLength:)]) |
|---|
| 34 | [delegate unarchiver:self extractedLength:length]; |
|---|
| 35 | } |
|---|
| 36 | |
|---|
| 37 | - (void)_notifyDelegateOfSuccess |
|---|
| 38 | { |
|---|
| 39 | if ([delegate respondsToSelector:@selector(unarchiverDidFinish:)]) |
|---|
| 40 | [delegate performSelector:@selector(unarchiverDidFinish:) withObject:self]; |
|---|
| 41 | } |
|---|
| 42 | |
|---|
| 43 | - (void)_notifyDelegateOfFailure |
|---|
| 44 | { |
|---|
| 45 | if ([delegate respondsToSelector:@selector(unarchiverDidFail:)]) |
|---|
| 46 | [delegate performSelector:@selector(unarchiverDidFail:) withObject:self]; |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | static NSMutableArray *__unarchiverImplementations; |
|---|
| 50 | |
|---|
| 51 | + (void)_registerImplementation:(Class)implementation |
|---|
| 52 | { |
|---|
| 53 | if (!__unarchiverImplementations) |
|---|
| 54 | __unarchiverImplementations = [[NSMutableArray alloc] init]; |
|---|
| 55 | [__unarchiverImplementations addObject:implementation]; |
|---|
| 56 | } |
|---|
| 57 | |
|---|
| 58 | + (NSArray *)_unarchiverImplementations |
|---|
| 59 | { |
|---|
| 60 | return [NSArray arrayWithArray:__unarchiverImplementations]; |
|---|
| 61 | } |
|---|
| 62 | |
|---|
| 63 | @end |
|---|
Note: See
TracBrowser
for help on using the repository browser.