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
0
votes
1 answer

Force Lucida Grande Font in a Yosemite Cocoa app

I have a requirement for some labels in my app to use Lucida Grande. When I specify this font in Xcode it renders correctly in the xib, but when you launch the app in Yosemite it switches back to Helvetica Neue. How can I get this to work…
Demian Turner
  • 436
  • 3
  • 12
0
votes
1 answer

NSTableCellView / NSTextField did end editing notification -- without text change?

How can I get a notification when the textfield has ended editing (enter key pressed, clicked outside the text field, clicked inside the same column, but outside the text field, etc) I checked - (void)textDidEndEditing:(NSNotification…
user429620
0
votes
1 answer

Setting 2nd TextColor for NSTextField in NSOutlineView

When using the default color black for a NSTextfield in a View-based NSOutlineView it gets white when selected. When i set a custom textColor in IB, it will stick with it. Where can i set the second textColor?
user3005567
  • 87
  • 1
  • 11
0
votes
1 answer

How to create a custom software key UITextField/NSTextField

I want to create a custom NSTextField/UITextField like this for entering a software key (pardon my paint skills). Does anybody have any suggestions as to how I should go about this? My lazy solution would be to give it a placeholder string with…
A O
  • 5,516
  • 3
  • 33
  • 68
0
votes
1 answer

How do I send the mutable string to the NSTextField properly?

So I have all this code that I have debugged and it seems to be fine. I made a mutable string and for some reason I can not get it to be displayed on my label. the debugger says "2010-04-22 22:50:26.126 Fibonacci[24836:10b] *** -[NSTextField…
Merle
  • 15
  • 6
0
votes
1 answer

How do I override drag reception in an NSTextField?

I'm writing this in Swift. I have an NSTextField I've assigned a class in IB defined by: class MyTextField : NSTextField, NSDraggingDestination { I've overridden draggingEntered, draggingUpdated, prepareForDragOperation, performDragOperation in the…
skytag
  • 3
  • 1
  • 4
0
votes
1 answer

Dragging an NSTextField inside of a window

Im attempting to make a little app that lets you add text boxes to you canvas (window). I have an NSTextField that needs to let you drag it around the window. When you drop it it needs to stay in the spot you mouse left it. Heres my code to make the…
nosedive25
  • 2,477
  • 5
  • 30
  • 45
0
votes
1 answer

How does an NSTextField know that it's value has changed?

I have a textfield that can either be edited by hand, or set through another control. (It's a page number, so you can jump to page 16 by typing in 16, or you can page up and down with the next/prev buttons) I have the value of the text field bound…
Brian Postow
  • 11,709
  • 17
  • 81
  • 125
0
votes
0 answers

NSTextField don't update after click

I create a easy application. I create one class for show the coordinate from mouse. my .m file #import @interface MousePossition : NSView{ IBOutlet NSTextField *coordinateLabel; NSPoint mouseLocation; } @end and my…
spyrto
  • 1
0
votes
1 answer

NSFormatter show error

I made a custom NSFormatter subclass and want to return an error message however assigning the error and returning valid = NO doesn't do the trick (no error is shown) - (BOOL)isPartialStringValid:(NSString **)partialStringPtr …
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
0
votes
1 answer

using a custom nstextfieldcell in an nstextfield

I have a custom nstextfieldcell. I thought I could drag a textfield to a xib and click on it's cell, then change the cell's class to my custom class.That doesn't work. Also, I thought I could drag the custom cell from the library (i made a plugin)…
joels
  • 7,249
  • 11
  • 53
  • 94
0
votes
1 answer

AutoScroll down in a NSTextField in Swift

I am trying to find a way to scrool down at the end of a NSTextField automatically. The textField is updated in a loop so I wanted to know how to make it display the last text entered each time by scrolling down. Here is my code: var tmp =…
P1kachu
  • 1,077
  • 3
  • 11
  • 33
0
votes
1 answer

Implement NSTextfield with labels

I am trying to implement a NSTextField that displays an autocomplete list and when an option is selected, the value is highlighted as an individual label. The best way to describe this is how mail completes email addresses and separates each one…
BON
  • 433
  • 2
  • 9
  • 18
0
votes
1 answer

Where is NSTextfield Validates Immediately?

I have set it before but I cannot find the option any more... alt text http://www.joelsaltzman.com/pics/ib.png
joels
  • 7,249
  • 11
  • 53
  • 94
0
votes
1 answer

Core Animation Unwanted Text Sharpening

Whenever I add a layer for Core Animation either from the nib or programatically, the NSTextFields (labels) in my interface get messed up. Here's a screenshot from Apple's BasicCocoaAnimations example. (Look at the text fields on the left, somehow…
Jef
  • 297
  • 5
  • 15