Hi my code generates the following exception :
[Dot position]: unrecognized selector sent to class 0x58a8.
What I do is I add instance of class Dot, to an NSArray (which is a property called dots) and then I try to get it back with;
Dot *last = [self.dots lastObject];
and print values inside C struct called position of type "CGPoint", last.position.x and last.position.y.
@property (nonatomic, readwrite) CGPoint position;
is witten inside Dot class .h file, which I also import to where I make a call to CGPoint getter.
Casting value returned from the array with (Dot*) does not help as well. Explicit addition of -(CGPoint) position to Dot .h file has no effect either.
Line generating the exception is:
NSLog(@"Dot added at: X : %f Y: %f", last.position.x, last.position.y);