NSString equivalent of CFSTR macro?
NSString equivalent of CFSTR macro?
- Subject: NSString equivalent of CFSTR macro?
- From: Rick Mann <email@hidden>
- Date: Mon, 4 Dec 2017 14:47:24 -0800
I have to use some C header file that #defines some string constants. Is there
an equivalent to CFSTR() that constructs NSString literals? E.g.,
#define NSSTR(s) (@ ## s) <-- magic; this
doesn't work
#define kSomeCStringConstant "foo"
...
NSSTR(kSomeCStringConstant)
TIA,
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden