I have a global constant:
FOUNDATION_EXPORT NSString *const ENGModelItemText; // .h file
NSString *const XYZConstant1 = @"XYZConstant1"; // .m file
... and I would like to create XYZConstant2
that would point to XYZConstant1
. I thought it would be as simple as this:
NSString *const XYZConstant2 = &XYZConstant1
I played with *
and &
a bit but can't get it right. I'd like to get rid of #define
for XYZConstant2
that I use now.