nstextfield
NSTextField : How to draw background only when focused
I put a textfield in a window, and I w开发者_开发百科ant the textfield draw background only when focused.[详细]
2023-03-08 09:43 分类:问答Performing an action on end editing
I have a text field in my Objective-C Mac app. This is what I want: when I stop writing in the text field for more than 5 seconds, it开发者_如何学C runs something. Is this possible?[详细]
2023-03-07 02:23 分类:问答Check format of text entered in NSTextField
I\'ve subclassed NSTextField and need to check that the text entered into it is in the format of either 00:00:00 or 0:00:00 with textDidEndEditing. I was about to go to regEx r开发者_JS百科oute but ha[详细]
2023-03-07 01:49 分类:问答NSTextfield + NSMenu and first responder
I\'m trying to implement my own autocomplemention system (result is pull from an sqlite database) I\'ve set up a NSTextField and the appropriate delegate. Each time the text in the NSTextField change[详细]
2023-03-07 01:27 分类:问答Getting the length of an NSTextField's text property
I am having a problem finding the length of a text field\'s text! I searched here a lot and just found that it would work with textfield.text.length or something like that.[详细]
2023-03-06 09:44 分类:问答How to add to, not overwrite, an output on xcode
I have a function that outputs a number to a multi-line text field. Currently, I set the contents of the text field with[详细]
2023-03-04 21:24 分类:问答NSTextField waits until the end of a loop to update
Here\'s the problem:I have some code that goes like this otherWinController = [[NotificationWindowController alloc] init];[详细]
2023-03-01 17:38 分类:问答NSTextField with shadow?
I\'d like the NSTextFields I set up in Interface Builder to have shadows. I\'ve implemented a way to do this which seems to work, but I\'m not sure if it\'s the right way.[详细]
2023-02-25 19:59 分类:问答Cocoa: NSTextField and Fullscreen-Mode with enterFullScreenMode:
currently I\'m experimenting with the enterFullScreenMode: option of NSWindow making a subview of the window\'s contentView the new fullscreen view which works nice. However, my view contains a NSText[详细]
2023-02-22 19:39 分类:问答NSTextField autocompletion delegate method not called
I implemented the following delegate method for NSTextField to add autocompletion support: - (NSArray *)control:(NSControl *)control[详细]
2023-02-21 08:18 分类:问答