concatenating literal strings
concatenating literal strings
- Subject: concatenating literal strings
- From: Matt Neuburg <email@hidden>
- Date: Wed, 7 Aug 2002 10:27:42 -0700
I've just discovered by accident that it's possible to concatenate two
literal NSStrings just by leaving a space between them:
NSString* s = @"Howdy " @"There";
Pretty cool, especially when a literal string is very long because now it
can easily be split across lines of code.
So - is this documented somewhere? Are there any other cool basic tricks
like this that I ought to know by now (after more than a year of using
Cocoa)? m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.