NSTextField object belongs to Apple's class.
I'm trying to set the text in an NSTextField, but the -setStringValue: and -setTitleWithMnemonic: methods are not working. Any ideas?
cocoa macos nstextfieldHere's the code: - (IBAction) charlieInputText:(id)sender { //getting value from text field when entered charlieInputSelf = [sender stringValue]; if (charlieInputSelf != @"") { //(…
objective-c xcode variables nstextfieldI have an NSTextField and I need to get the field's value into a variable. What's the appropriate method?
macos cocoa nstextfieldI would like to use the code from the answer to this question: How to observe the value of an …
cocoa observer-pattern nstextfield nsnotificationsI can't seem to be able to change the text Label in a Mac app that I am trying to …
swift nstextfieldI'm trying to understand how to catch a "text changed" event from a text field in my window. I'm used …
objective-c cocoa macos listener nstextfieldNeed to have an NSTextField with a text limit of 4 characters maximum and show always in upper case but can't …
objective-c cocoa user-interface nstextfieldI am creating cocoa app in which i created NSTextField programmatically like this, NSView *superView = [[NSView alloc] initWithFrame:NSMakeRect(0, 300, 1400, 500)]; NSTextField *…
xcode cocoa xcode4.2 vertical-alignment nstextfieldI'm attempting to resize a text field / view automatically depending on its current width. In other words I want the …
objective-c nstextfield nstextviewI am used to doing this in Cocoa-touch, so I assumed it would be quite simple. I have already tried: …
cocoa macos nsstring nstextfield