I feel I must be going about this the wrong way and there is probably a very simple solution that I cant seem to find. In ClassA.h I have:
@property (strong, retain) NSManagedObject *form;
In ClassB I have tried:
#import "ClassA"
@interface ClassB ()
{
ClassA *classA;
}
Then in viewDidLoad I have:
NSLog(@"form::%@", classA.form);
but its nil everytime even though when Im on classA (its a viewcontroller) it definitely has a value.
EDIT:
So I followed the example given by BlackRider classA
MyManager *sharedManager = [MyManager sharedManager];
sharedManager.someProperty = self.form;
classB
MyManager *sharedManager = [MyManager sharedManager];
NSLog(@"globalform::%@", sharedManager.someProperty);
and Im still getting null value in the log print.