Kuba Kuba - 4 months ago 25
Objective-C Question

NSString as a resources in Xcode project

Is there any way to simply declare static

NSString
as defined int identifier ? I want to do something like in C++
#define MY_SIMPLE_ID 4
.

EDIT:
Where should I declare this? In C++ I have global access to resource file with it. Is there a way to do that in Objective-C?

Answer

Why not using :

#define MY_STRING @"MyString"