Suppose I have a class defined in objective C with some variables within it
I know that in C++ when I define a class, if those variables were "public" I could access them like "myObject.variable1" but that doesn't seem to work with objective-c. For the time being I have just written methods that will return those variables, but is there a way that I can access them without writing a method for each d**n variable?
Code:
@interface myObject : NSObject
{
[INDENT]int variable1;[/INDENT]
[INDENT]int variable2;[/INDENT]
}
@end //myObject