nstextfield
Selecting text programmatically in menu view
I write an \"Agent\" Cocoa app where I have TextField in status icon\'s men开发者_如何学Cu, it looks like this:[详细]
2023-03-19 03:09 分类:问答NSTask character output to NSTextField unbuffered as continuous stream
What I want to accomplish is to start a command line (CL) task (wrapped NSTask) and pipe (NSPipe) the character output through an NSTextField label in my UI, in real-time as a stream of characters. Th[详细]
2023-03-18 06:19 分类:问答Assigning a delegate programmatically
I am attempting to assign my view controller as the delegate to a NSTextField I created from within the application:[详细]
2023-03-18 03:21 分类:问答Problem in getting stringValue from NSSecureTextField
I have a password field of type NSSecureTextField say passwordField and a NSButton. I have assigned return key as key equivalent for the button action triggering. After pressing the button I get user[详细]
2023-03-17 22:05 分类:问答How to observe the value of an NSTextField
This might seem straightforward, but the following code does not work, because the \"observeValueForKeyPath\" function is never called, although I keep changing the text in the NSTextfield:[详细]
2023-03-16 13:24 分类:问答Modifying a multi-line NSTextField's font size according to content length
I have a multi-line NSTextField and I need to set its font size so that when its content is short, it displays only on one line with a big font size,[详细]
2023-03-16 08:20 分类:问答Disable Regional settings for NSTextField
I have a problem with NSTextField in Cocoa. Is there a way to remove regional settings from a NSTextField[详细]
2023-03-14 13:04 分类:问答NSTextField's autocompletion method
I\'m having problem triggering complete: method for NSTextfield. for now I can make an dis开发者_如何转开发tinct array of names from a textfield using @distinctUnionOfObjects ( awesome method to remo[详细]
2023-03-14 11:17 分类:问答NSTableView triggering another action when clicked
While learning objective-c, I\'ve made a basic mac shopping list app with 3 interface elements: NSTextField, NSButton and NSTableView. The basic idea is you type something into the text field, hit the[详细]
2023-03-14 04:45 分类:问答location of a button/textfield in a view in cocoa
I\'m sorry to ask such a question, but I can\'t seem to find the answer for it from the wild web. I want to find out the location of a NSTextField in my custom view, so I can add other textfields und[详细]
2023-03-13 07:39 分类:问答