nstextfield
How to implement a custom Focus Ring in drawRect for NSTextField or NSTextVew
I want to draw a custom focus ring for my NSTextView subclass (which doesn\'t have a focus ring by default). I managed to implement it by overriding the parent NSScrollView drawRect and adding this co[详细]
2023-04-10 13:12 分类:问答How to hide focus ring for NSTextFieldCell?
I\'m trying to get this blue border (which is around a NSTextFieldCell when you can edit the value) out of the way. Is there a way manage this somehow? At the same time the user should still be able t[详细]
2023-04-10 11:00 分类:问答Cocoa/OSX - NSTextField not responding to click for text editing to begin when titlebar is hidden
I have a NSTextField in my window (added wit开发者_如何学Pythonh IB) with a hidden title bar but when I click on it when the app is running, it does not respond or place a cursor in its field. Is ther[详细]
2023-04-09 23:16 分类:问答can't edit NSTextField in sheet at runtime
When clicking on a button, I\'d like to display a sheet with an email+password prompt with options to save and cancel. The UI is all set up, the actions are in place, and the sheet appears and cancels[详细]
2023-04-08 00:56 分类:问答Scaled preview: use NSTextView, NSTextField, CATextLayer, or drawInRect?
I\'m programming a cocoa app that presents text (vertically and horizontally) centered on a projector screen.[详细]
2023-04-05 08:45 分类:问答Changing the content of a NSTextField via code when it's focused / gets edited by the user
I have a NSSlider which updates the content of an NSTextField. So far so good. It works as long as the NSTextField isn\'t focused or gets edited by the user (typing or staying blank etc.).[详细]
2023-04-03 11:13 分类:问答Mac OS X: strikethrough the text in a label (NSTextField)
Is it possible to strikethrough the text in a label (NSTextField)? I have tried t开发者_开发百科o use the Font Panel, but apparently these are ignored when I try to set them:[详细]
2023-04-02 09:33 分类:问答NSTextField to update before the end of a method
so here is the deal: I have a label (NSTextField) that I want to activate after I click a button. This label will appear while the program is loadi开发者_运维问答ng some wavs (since it usually makes[详细]
2023-04-01 02:36 分类:问答How can I calculate (without search) a font size to fit a rect?
I want my text to fit within a specific rect, so I need something to determine a font size.Questions have already tackled this to an extent, but they do a search, which seems horribly inefficient, esp[详细]
2023-04-01 02:19 分类:问答Not being able to edit NSTextField on NSPopover even though Editable behavior is set
I have an application, which open popover with NSTextField. The text field is not editable. Behavior for text field is set to Editable. I still can开发者_如何转开发 paste and copy text to this field b[详细]
2023-03-31 08:31 分类:问答