Hello,
I am having some problems using dot syntax. I am trying to access a property from another class, but it isn't working. Here is a simplified version of my code:
I synthesize my property in the ClassA implementation. Now to ClassB's implementation file. I am skipping interface as it is not important
(Obviously the something method is made up).
The thing is, even though I import my other classes I can't access my properties from those other classes.
What am I doing wrong?
I am having some problems using dot syntax. I am trying to access a property from another class, but it isn't working. Here is a simplified version of my code:
Code:
@interface ClassA : NSObject{
IBOutlet NSColorWell *myWell;
}
@property (nonatomic, retain) IBOutlet NSColorWell *myWell;
I synthesize my property in the ClassA implementation. Now to ClassB's implementation file. I am skipping interface as it is not important
Code:
#import "ClassA.h"
#import "ClassA.m"
#import ClassB.h"
@implementation ClassB
-(void)awakeFromNib{
[something:[myWell.color]];
}
(Obviously the something method is made up).
The thing is, even though I import my other classes I can't access my properties from those other classes.
What am I doing wrong?