nstextfield
How to force an NSTextField to accept the text?
I have an NSTextField in a Preferences panel. It provides a field to enter a url in. However, if the user closes the Preferences panel after editing the text in the field, the new val开发者_如何学JAVA[详细]
2023-01-23 01:18 分类:问答Send action from NSTextField when on key up instead of return
I want to show the number of characters left for a new tweet, after a key has been lifted. Current开发者_C百科ly, this only happens if return is lifted:[详细]
2023-01-21 06:16 分类:问答Cocoa (Snow Leopard) NSTextView's textStorage -setAttributes:range: removes characters!
I\'m not sure what I\'m doing wrong.I have a NSTextView and am registered as the delegate for its textStorage attribute.When I receive -textStorageDidProcessEditing:notification: I\'m trying to apply[详细]
2023-01-21 01:28 分类:问答How can I force entry to complete in a NSTextField from a NSButton
I just noticed a problem when my user-interface is in a certain state. I have a table view wi开发者_高级运维th two columns both of which the user can enter data that is to be used later. There\'s also[详细]
2023-01-20 06:21 分类:问答Creating a label using NSTextField is blurry
I\'m trying to create a label programmatically using NST开发者_运维知识库extField, but it comes out blurry: screenshot[详细]
2023-01-19 14:02 分类:问答I need to do some advanced text styling of NSTextFieldCell
First i need some background color on the text only. Like the headers in the F-Script Browser Setting [cell setBackgroundColor: [NSColor blueColor]]; colors the whole cell space not only the text.[详细]
2023-01-14 18:11 分类:问答Validate decimal max/min values in a NSTextField
First of all i have to do this without IB and without advanced Objective-C techniques like KVO. My problem comes from the simple fact that i can\'t find a way to get the whole new string value of th[详细]
2023-01-14 17:27 分类:问答Text formatting in NSTextField
I have a graphics app that uses a NSTextField instance for in-place text editing, this feature was added long time ago and I never had a reason to check it, however, I have recently received a report:[详细]
2023-01-13 15:56 分类:问答Focus NSAlert accessory item
I have an NSAlert item that uses an NSTextField as an accessory item to provide an prompt-like dialog box. The only problem that I have is that when the alert is ran the text field is not focused. I t[详细]
2023-01-13 01:48 分类:问答How can i add menu items to the context menu of a NSTextField
I tried to overwrite the simple NSView method: - (NSMenu *)menuForEvent:(NSEvent *)event { NSMenu* result = [super menuForEvent: event];[详细]
2023-01-12 18:16 分类:问答