Ok, I fear the error:
error: incompatible type for argument 1 of 'initWithFrame:'
Here is what it makes:
operationLabel = [[NSTextField alloc] initWithFrame:CGRectMake(0, self.frame.size.height / 2 - (40 * 3), self.frame.size.width, 100)];
Definition:
- (id)initWithFrame:(NSRect)frameRect;
So, the first argument is NSRect, let's check it out:
typedef CGRect NSRect;
How can this cause an error? They are the same types in different ways!
objective-c cocoa
Kristina brooks
source share