Ok , I'm consfused about an error :
error: incompatible type for argument 1 of 'initWithFrame:'
This is what causes it:
operationLabel = [[NSTextField alloc] initWithFrame:CGRectMake(0, self.frame.size.height / 2 - (40 * 3), self.frame.size.width, 100)];
The definition is:
- (id)initWithFrame:(NSRect)frameRect;
So the first argument is NSRect, lets check it :
typedef CGRect NSRect;
How can it cause an error? They are same types named differently!