Top "Nstextfield" questions

NSTextField object belongs to Apple's class.

How do you set the text in an NSTextField?

I'm trying to set the text in an NSTextField, but the -setStringValue: and -setTitleWithMnemonic: methods are not working. Any ideas?

cocoa macos nstextfield
Objective c checking whether text field is empty

Here's the code: - (IBAction) charlieInputText:(id)sender { //getting value from text field when entered charlieInputSelf = [sender stringValue]; if (charlieInputSelf != @"") { //(…

objective-c xcode variables nstextfield
Get value from NSTextField

I have an NSTextField and I need to get the field's value into a variable. What's the appropriate method?

macos cocoa nstextfield
Text change notification for an NSTextField

I would like to use the code from the answer to this question: How to observe the value of an …

cocoa observer-pattern nstextfield nsnotifications
NSTextField, Change text in Swift

I can't seem to be able to change the text Label in a Mac app that I am trying to …

swift nstextfield
Listen to a value change of my text field

I'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 nstextfield
How to limit NSTextField text length and keep it always upper case?

Need 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 nstextfield
NSTextField Vertical alignment

I 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 nstextfield
NSString boundingRectWithSize slightly underestimating the correct height - why?

I'm attempting to resize a text field / view automatically depending on its current width. In other words I want the …

objective-c nstextfield nstextview
Change the text in a NSTextField programmatically?

I am used to doing this in Cocoa-touch, so I assumed it would be quite simple. I have already tried: …

cocoa macos nsstring nstextfield