Questions tagged [nstextfield]

NSTextField object belongs to Apple's class. It's a kind of NSControl that displays text that the user can edit or select.

An NSTextField object is a kind of NSControl () that displays text that the user can select or edit and that sends its action message to its target when the user presses the Return key while editing.

The NSTextField () class uses the NSTextFieldCell () class to implement its user interface.

References:

1028 questions
-2
votes
1 answer

Adding NSTextFields together Swift 3 XCode 8

Any anyone explain the syntax in adding two or more textfields together in Swift 3 inside XCode 8. This is for a desktop application, not IOS. NSTextField Control. I need precision to the tenth's place. So I guess a float will be necessary.…
-2
votes
1 answer

How to show the content of NSDictonary as key value pairs in a NSTextField?

i'd like to know how i can print the contents of a NSDictonary of unknown size fully in a NSTextField? The output should look like this at the end: Key1: Value Key2: Value Key3: Value . . . KeyN: Value
p0fi
  • 1,056
  • 12
  • 28
-2
votes
1 answer

NSTextField not correctly refreshing after loosing focus

I'm having a little problem with the NSTextfield of my program. When I select them, they gain the focus ring or get a little darker (if the focus ring is disabled) but if I unselect them they are not redrawn correctly. Image of this NSTextField…
Thomas
  • 81
  • 7
-3
votes
2 answers

How to set maximum length of a NSTextField without overwriting the last character?

I'm not able to find any inbuilt property for this. Is there a way by which I can manually achieve this? How to set maximum length of a NSTextField without overwriting the last character ? They shouldn't be able to enter the next character after…
Prithvi Venu
  • 264
  • 3
  • 16
-3
votes
1 answer

Access text variable of NSTextField?

I want to access the text variable of NSTextField ? I'v tried this. But it's not working. name = textfield.text Error: "Value of type 'NSTextField' has no member 'text'"
-3
votes
3 answers

remove all NSTextField in NSVIew

I created NSView in XIB and then add dynamic muitple NSTextField, then add NSVIew to NSScrollView. But when I chane number of TextField, it is loop. I want to clear all old NStextfield before add new NSTextField. I had add clear function but it not…
NML611
  • 27
  • 7
-4
votes
1 answer

Put a text on a NSTextField from Objective-C

I want to put text in a NSTextField, as if it was a Label. I have tried the following: [textFieldInstance setStringValue:@"Hello"];
-4
votes
1 answer

How do you set a textfields text?

I was wondering how do you set a textfields text in XCode Objective - C.
1 2 3
68
69