//AppDelegate.h
AppDelegate NSInteger myInt;
@property (readwrite, assign) NSInteger myInt;
//AppDelegate.m
@synthesize myInt;
//MyClass.h
AppDelegate *objAppDelegate;
//MyClass.m
objAppDelegate = (AppDelegate *) [[UIApplication sharedApplication] delegate];
myIntに値を割り当てようとすると
objAppDelegate.myInt=(NSInteger *)0; // <--- this gives warning: something like incompatible pointer to integer conversion like that
では、どうすればこの変数を割り当てることができますか?