Skip to content
Browse files

Partial fix for 245277: basic descriptions for some Sparkle classes. …

…Thanks to Christiaan Hofman for the patch.
  • Loading branch information...
1 parent 84be00b commit c386b704b5a78a8149f33d0a474e88caa76fbb4b @andymatuschak andymatuschak committed Aug 19, 2008
Showing with 15 additions and 0 deletions.
  1. +1 −0 SUAutomaticUpdateAlert.m
  2. +2 −0 SUHost.m
  3. +2 −0 SUStatusController.m
  4. +2 −0 SUUnarchiver.m
  5. +2 −0 SUUpdateAlert.m
  6. +2 −0 SUUpdateDriver.m
  7. +2 −0 SUUpdatePermissionPrompt.m
  8. +2 −0 SUUpdater.m
View
1 SUAutomaticUpdateAlert.m
@@ -33,6 +33,7 @@ - (void)dealloc
[super dealloc];
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [host bundlePath]]; }
- (IBAction)installNow:sender
{
View
2 SUHost.m
@@ -28,6 +28,8 @@ - (void)dealloc
[super dealloc];
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self bundlePath]]; }
+
- (NSBundle *)bundle
{
return bundle;
View
2 SUStatusController.m
@@ -31,6 +31,8 @@ - (void)dealloc
[super dealloc];
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [host bundlePath]]; }
+
- (void)awakeFromNib
{
[[self window] center];
View
2 SUUnarchiver.m
@@ -27,6 +27,8 @@ + (SUUnarchiver *)unarchiverForPath:(NSString *)path
return nil;
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], archivePath]; }
+
- (void)setDelegate:del
{
delegate = del;
View
2 SUUpdateAlert.m
@@ -25,6 +25,8 @@ - (id)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost
return self;
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [host bundlePath]]; }
+
- (void)dealloc
{
[updateItem release];
View
2 SUUpdateDriver.m
@@ -18,6 +18,8 @@ @implementation SUUpdateDriver
return self;
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [host bundlePath]]; }
+
- (void)checkForUpdatesAtURL:(NSURL *)appcastURL host:(SUHost *)h
{
host = [h retain];
View
2 SUUpdatePermissionPrompt.m
@@ -43,6 +43,8 @@ + (void)promptWithHost:(SUHost *)aHost systemProfile:(NSArray *)profile delegate
[NSApp runModalForWindow:[prompt window]];
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [host bundlePath]]; }
+
- (void)awakeFromNib
{
if (![self shouldAskAboutProfile])
View
2 SUUpdater.m
@@ -78,6 +78,8 @@ - (id)init
return [self initForBundle:[NSBundle mainBundle]];
}
+- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [host bundlePath]]; }
+
- (void)applicationDidFinishLaunching:(NSNotification *)note
{
BOOL shouldPrompt = NO;

0 comments on commit c386b70

Please sign in to comment.
Something went wrong with that request. Please try again.