Cocoa ist das Standard-Framework von Apple für Programme für MacOS X.
// Set string to NSTextField [theTextField setStringValue:@"Hello World!"]; // Get string from NSTextField NSString *myString = [theTextField stringValue];
Quelle: Stack Overflow: Get Value From NSTextField