Ok, sto consfused su un errore:Come mai NSRect e CGRect sono tipi incompatibili?
error: incompatible type for argument 1 of 'initWithFrame:'
Questo è ciò che lo causa:
operationLabel = [[NSTextField alloc] initWithFrame:CGRectMake(0, self.frame.size.height/2 - (40 * 3), self.frame.size.width, 100)];
La definizione è:
- (id)initWithFrame:(NSRect)frameRect;
Così il primo argomento è NSRect, controlla:
typedef CGRect NSRect;
Come può causare un errore? Sono gli stessi tipi chiamati diversamente!