in my view controller.m i have a string like this
NSString *valueToSave = @"someValue";
and would like to safe the text with NSUserDefauls in Appdelegate.m
[[NSUserDefaults standardUserDefaults]
setObject:valueToSave forKey:@"preferenceName"];
how can i use the NSString in the other file? This doesn't work:
#import "viewcontroller.m";