I have this struct:
This is in the implementation:
EXC_BAD_ACCESS occurs at the last line. What is the problem?
Code:
typedef struct node {
CGPoint current;
CGPoint next;
} node;
Code:
CGPoint location;
location.x = [theEvent locationInWindow].x;
location.y = [theEvent locationInWindow].y;
struct node* noud;
noud->current = location;
EXC_BAD_ACCESS occurs at the last line. What is the problem?