Re: Is Concatenation that complex?
Re: Is Concatenation that complex?
- Subject: Re: Is Concatenation that complex?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 28 Apr 2004 00:15:48 +0200
At 10:40 Uhr +0200 23.04.2004, Marco Scheurer wrote:
I agree, this is still not particularily nice. Using a variadic
macro, something like:
#define JoinedStrings(...) [[NSArray
arrayWithObjects:__VA_ARGS__, nil] componentsJoinedByString:@""]
should allow you to write:
JoinedStrings (@"Or have we eaten on the", middle, @"that takes
the reason prisoner?");
Just note that, with that macro, "middle" would have to be an
NSNumber object. You can't have an NSArray containing a C data type,
after all.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.