Hi,
The syntax
[FirstViewController.routines addObject:myString];
is used in languages (I think other than objective c not in objective c) to assign values to static variables.
So if routines
is an object of a static array you should define a static method in the FirstViewController class and calling that method you should add this object like:
+(void)addObjectToRoutines:(NSString *)string{//In the FirstViewController class
[routines addObject:string];
}
and from the class you are in just do this
NSString *myString = RoutineTitle.text;
[FirstViewController addObjectToRoutines:myString];
Now if its a stance variable you should first make a object of your class like:
FirstViewController *viewCont = [[FirstViewController alloc] init];
[[viewCont routines] addObject:myString];
Hope this helps.(The answer is given as my pridiction is that FirstViewController is class name not a variable, may be I am mistaken)
Thanks,
Madhup