• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is Concatenation that complex?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Is Concatenation that complex? (From: Adam <email@hidden>)
 >Re: Is Concatenation that complex? (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Resizable Borderless Window [Issues solved]
  • Next by Date: Re: Implementing an iChat-like view
  • Previous by thread: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Next by thread: Pop email checking information?
  • Index(es):
    • Date
    • Thread