Does Objective-C have raw strings like Python’s?
Clarification: a raw string doesn’t interpret escape sequences like \n: both the slash and the “n” are separate characters in the string. From the linked Python tutorial:
>>> print 'C:\some\name' # here \n means newline!
C:\some
ame
>>> print r'C:\some\name' # note the r before the quote
C:\some\name
From your link explaining what you mean by “raw string”, the answer is: there is no built in method for what you are asking.
However, you can replace occurrences of one string with another string, so you can replace
@"\n"with@"\\n", for example. That should get you close to what you’re seeking.