[sparkleplus commit] r111 - trunk

1 view
Skip to first unread message

codesite...@google.com

unread,
Jan 10, 2008, 7:36:38 PM1/10/08
to spark...@googlegroups.com
Author: atomicbird
Date: Thu Jan 10 16:36:20 2008
New Revision: 111

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;
}

codesite...@google.com

unread,
Jan 10, 2008, 7:36:38 PM1/10/08
to spark...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages