I created a label:
NSTextField *label = [NSTextField alloc] initWithFrame:NSMakeRect(50, 50, 100, 50)];
[txtField setStringValue:inputString];
[txtField setEditable:false];
The length of inputString is unknown at compile time, so how can I resize the label so that it fits all in one line and center it after giving it the inputString?
I'm still new to Cocoa, so thanks for the help!