On 4 Dec 2017, at 22:47, Rick Mann <rm...@latencyzero.com> wrote: > > 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)
Why not just do #define NSSTR(s) ((NSString *)CFSTR(s)) After all, constant NSStrings are the same as constant CFStrings, right? Kind regards, Alastair. -- http://alastairs-place.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com