diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2019-05-20 11:55:44 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2019-05-20 11:55:44 -0700 |
commit | 837b7c8801dabaec33c55494047540b6ac6ef22d (patch) | |
tree | f69aeff6e669d7ab8baa68adb248613ed4364088 | |
parent | 0a49c9d7028bea50d6d73f313c286f608a84b71b (diff) |
Objective-C seriously didn't notice my mistake :/.
-rw-r--r-- | CyteKit/stringWith.mm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/CyteKit/stringWith.mm b/CyteKit/stringWith.mm index b3d0e72..da647df 100644 --- a/CyteKit/stringWith.mm +++ b/CyteKit/stringWith.mm @@ -36,23 +36,23 @@ + (NSString *) stringWithFormat:(NSString *)format :(size_t)count :(id *)args { switch (count) { case 0: - return [[[NSString init] initWithFormat:format] autorelease];; + return [[[NSString alloc] initWithFormat:format] autorelease];; case 1: - return [[[NSString init] initWithFormat:format, args[0]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0]] autorelease];; case 2: - return [[[NSString init] initWithFormat:format, args[0], args[1]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1]] autorelease];; case 3: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2]] autorelease];; case 4: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3]] autorelease];; case 5: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4]] autorelease];; case 6: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5]] autorelease];; case 7: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6]] autorelease];; case 8: - return [[[NSString init] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]] autorelease];; + return [[[NSString alloc] initWithFormat:format, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7]] autorelease];; default: _assert(false); } |