nstextfield
NSTextField placeholder text doesn't show unless editing
I set the placeholder text of m开发者_如何学运维y NSTextField in Interface Builder, but the placeholder text doesn\'t show until I click inside the text field to edit it.Have you tried setting the pla[详细]
2023-02-21 05:04 分类:问答Cocoa auto-update dictionary values from NSTextField
Right now I have a dictionary containing a string value and an NSTextField in my interface. However, in order to update this开发者_开发问答 value I have to click a button that then runs the update cod[详细]
2023-02-21 02:40 分类:问答NSButton Inside NSTextField
I\'m trying to create a NSTextField with a button on its right side (similar to a NSSearchView), but I can\'t figure out how to have the NSTextField\'s text scroll without going under the NSButton.[详细]
2023-02-19 22:55 分类:问答Cocoa/Obj-C - How to set a disabled NSTextField scrollable?
I have an NSTe开发者_如何转开发xtField which is \"read only\" (not enabled, selectable nor editable). This field is multi-line but I would like to scroll it, is it possible?[详细]
2023-02-17 10:43 分类:问答Making my NSSecureTextField trigger an NSButton
I have an NSSecu开发者_运维百科reTextField. How can I make it so that when the \'Enter\' button is pressed on the keyboard, the \'login\' button is triggered? Thanks!It\'s probably a better idea to ju[详细]
2023-02-16 03:08 分类:问答How to fix focus ring's highlight being clipped when using CALayer?
The window\'s contentView has NSTextFields. (MacOS) i\'m using interface builder to setup the window and its features, so nothing in awakeFromNib except this:[详细]
2023-02-14 21:24 分类:问答NSTextField captures return key event twice
I have a textfield and two buttons. The user should be able to press return when they’re done editing the textfield, and then return again to activate one or the other of the buttons, depending on co[详细]
2023-02-12 23:56 分类:问答NSView | NSTextField Right Click issue
I have a NSView and inside that, there is a Label : NSTextField Control, Inside NSView i have to show a context menu on the right click, its working fine except few below issue,[详细]
2023-02-12 18:14 分类:问答Is it possible to bring window to front without taking focus?
I am working on an application for my personal usage that will remind me of stuff at regular intervals and/or will require text entry. Hence this popup window has an NSTextField.[详细]
2023-02-08 11:28 分类:问答Changing focus from NSTextField to NSOpenGLView?
I am developing an interface for an OpenGL Simulation on the Mac using Interface Builder. All OpenGL stuff is being written in C++ (which I know fairly well). Unfortunately I have no idea about Object[详细]
2023-02-08 10:10 分类:问答