Hey guys
Why cant i do this?
Code:
Main.h
-(void)Setup:(int)number;
Main.m
-(void)Setup:(int)number
{
NSLog(@"The number is %i",number);
}
NumberGetting.h
#import "Main.h"
...
....
Main *main;
...
@property(non,ret)Main *main;
NumberGetting.m
[main Setup:3];
Why wont this code work? How can I achieve this? I have looked at singletons and dont think i need one.