I put a textfield in a window, and I w开发者_开发百科ant the textfield draw background only when focused.
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?
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
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
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.
I have a function that outputs a number to a multi-line text field. Currently, I set the contents of the text field with
Here\'s the problem:I have some code that goes like this otherWinController = [[NotificationWindowController alloc] init];
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.
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
I implemented the following delegate method for NSTextField to add autocompletion support: - (NSArray *)control:(NSControl *)control