I have a constants.h file and declared:
extern NSString * check_array_editable[];
In the constants.m i set:
NSString * check_array_editable[] = { @"1", @"2", @"3", @"4", @"5", @"6", @"7", @"9", @"11", @"14" , @"17", @"18", @"21" };
So is dont have to call an initializer, what i have to do if i use NSArray instead of the collection.
Now i import the constants.h and can access check_array_editable[]. But how will i be able to get the length and the Index of a specific item like the usage of NSArray:
BOOL isTheObjectThere = [check_array_editable containsObject: @"my string"];
NSUInteger indexOfTheObject = [check_array_editable indexOfObject: @"my string"];
---edit I finally decidest to work with NSArray and use a inizalise void in the constants.h
NSArray * check_array_invisible;
NSArray * check_array_editable;
NSArray * check_array_texteingabe;
NSArray * check_array_assistent;
NSArray * check_array_functionfield;
+(void)initialize{
check_array_invisible = @[@10, @13, @34, @35];
check_array_editable = @[@1,@2, @3, @4, @5, @6, @7, @9, @11, @14 , @17, @18, @21 ];
check_array_texteingabe = @[@1, @2, @3, @9, @11, @14];
check_array_assistent = @[@16, @35];
check_array_functionfield = @[@32];
}