ObjFW  Check-in [eeb744ac25]

Overview
Comment:Always return the description in -[componentsJoinedByString].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: eeb744ac25636f37e6cb9e192a3c97993ad23034b2521a5505fd76c9768a4cf0
User & Date: js on 2010-11-17 12:59:52
Other Links: manifest | tags
Context
2010-11-17
13:05
Ensure we have an OFMutableString in -[OFArray description]. check-in: ea2533ca8e user: js tags: trunk
12:59
Always return the description in -[componentsJoinedByString]. check-in: eeb744ac25 user: js tags: trunk
2010-11-16
00:50
Remove a useless #ifdef in OFObject.m. check-in: 57dd60897f user: js tags: trunk
Changes

Modified src/OFArray.m from [36b5ec075d] to [638078253b].

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
	size_t i, count = [array count];
	Class cls;
	IMP append;

	if (count == 0)
		return @"";
	if (count == 1)
		return [objs[0] retain];

	str = [OFMutableString string];
	cls = [OFString class];
	append = [str methodForSelector: @selector(appendString:)];

	pool = [[OFAutoreleasePool alloc] init];








|







281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
	size_t i, count = [array count];
	Class cls;
	IMP append;

	if (count == 0)
		return @"";
	if (count == 1)
		return [objs[0] description];

	str = [OFMutableString string];
	cls = [OFString class];
	append = [str methodForSelector: @selector(appendString:)];

	pool = [[OFAutoreleasePool alloc] init];