Modified:
trunk/NSString+extras.m
trunk/SUAppcast.h
trunk/SUUnarchiver.m
trunk/SUUpdater.m
Log:
Several minor changes courtesy of Daniel Jalkut:
- Quiet warnings about no newline at end of file
- Add an (id) type for the setDelegate method argument
- Patch a memory leak in ellipsizeAfterNWords
Modified: trunk/NSString+extras.m
==============================================================================
--- trunk/NSString+extras.m (original)
+++ trunk/NSString+extras.m Thu Jan 10 16:36:20 2008
@@ -72,7 +72,7 @@
- (NSString *) ellipsizeAfterNWords: (int) n {
NSArray *stringComponents = [self componentsSeparatedByString: @" "];
- NSMutableArray *componentsCopy = [stringComponents mutableCopy];
+ NSMutableArray *componentsCopy = [[stringComponents mutableCopy] autorelease];
int ix = n;
int len = [componentsCopy count];
Modified: trunk/SUAppcast.h
==============================================================================
--- trunk/SUAppcast.h (original)
+++ trunk/SUAppcast.h Thu Jan 10 16:36:20 2008
@@ -24,4 +24,4 @@
@interface NSObject (SUAppcastDelegate)
- appcastDidFinishLoading:(SUAppcast *)appcast;
-@end
\ No newline at end of file
+@end
Modified: trunk/SUUnarchiver.m
==============================================================================
--- trunk/SUUnarchiver.m (original)
+++ trunk/SUUnarchiver.m Thu Jan 10 16:36:20 2008
@@ -167,4 +167,4 @@
delegate = del;
}
-@end
\ No newline at end of file
+@end
Modified: trunk/SUUpdater.m
==============================================================================
--- trunk/SUUpdater.m (original)
+++ trunk/SUUpdater.m Thu Jan 10 16:36:20 2008
@@ -910,7 +910,7 @@
}
}
-- (void)setDelegate:del
+- (void)setDelegate:(id)del
{
delegate = del;
}