nsbutton Questions
5
Solved
I would like to know how to change title color to a NSButton in swift, I've seen lots of examples in objective-c but I think in swift the implementation is different, can anyone provide me an examp...
5
In my app I change the position of the standardWindowButtons close / miniturize / expand like so:
//Create the buttons
NSButton *minitButton = [NSWindow standardWindowButton:NSWindowMiniaturizeB...
Christie asked 3/10, 2011 at 12:9
5
Solved
I want to set the background color of NSButton.There was nothing in the attribute inspector so i was wondering if there was any way to do it programmatically?
4
Solved
I'm subclassing NSButtonCell to customize the drawing (customizable theme). I'd like to customize the way checkboxes and radio buttons are drawn.
Does anyone know how to detect whether a button is...
Protolanguage asked 17/10, 2012 at 13:57
3
Solved
I am trying to tackle a problem which sounds pretty simple: changing the background color of an NSPopupButton.
Interface Builder only allows changing the style to a pre-defined one and doesn't al...
Meras asked 4/11, 2012 at 19:47
2
Solved
I have some NSButtons of style Round Textured inserted into an NSToolbar.
I have created some custom images for the buttons and would like to make them vertically bigger, however the height field ...
Bellicose asked 17/7, 2013 at 23:10
4
Solved
I’d like to have an NSButton with an image and an alternate image. The alternate image should be displayed while the button is being pressed and I’d also like to display the alternate image from co...
8
Solved
I have a few checkboxes along with textfields on a NSPanel that opens to get user parameters.
As an option, I'd like the user to be able to set/unset all the checkboxes on the panel by holding the ...
Antung asked 13/5, 2013 at 23:31
13
on OSX I have an NSButton with a pretty dark image and unfortunately it is not possible to change the color using the attributes inspector. See picture the big black button, the text is Go.
Any ...
Battista asked 28/10, 2012 at 15:5
2
I have a NSVisualEffectView within a NSPopover developed for 10.10.
When subclassing the NSVisualEffectView to have hover background color effect, the borderless button color seems to be different...
Haemostasis asked 5/6, 2015 at 6:4
2
Solved
I was wondering how to go about making a button open up the fonts panel in Mac OS X using Cocoa, I have an NSTextView in my application and want the fonts dialogue to display when the user clicks t...
5
Solved
How can I change the cursor when it's over an NSButton?
Accroach asked 27/5, 2010 at 22:52
3
Solved
I am on OSX (not iOS), Xcode 8.2, Objective-C
I have two buttons with constraints. Both buttons got centered titles and both have the same width (via constraints). No when it comes to another lang...
Vesting asked 18/4, 2017 at 15:7
7
Solved
I am creating a custom NSButtonCell for a custom rendering.
Now, I want to have different aspect depending if the mouse is over the button or not. How can I get this information?
Thanks and rega...
Grapefruit asked 23/5, 2011 at 8:37
3
Using code (not the Interface builder) I need to create an NSButton that looks like an image. Specifically I want to use NSImageNameStopProgressFreestandingTemplate and I need it not to look like b...
Duplicate asked 26/12, 2010 at 12:8
2
Solved
Okay, here is the problem:
I have a NSTextView and I add my custom NSButton using:
[_textView addSubview:button];
Then, inside my NSButton subclass, I have (along with the NSTrackingArea stuff):...
Tila asked 29/4, 2013 at 20:28
0
I have an NSButton set as a checkbox with the following code on Catalina (Mojave is fine):
let checkbox = NSButton(frame: NSRect(x: 0, y: 0, width: 200, height: 32))
checkbox.setButtonType(.switch...
Dendy asked 8/10, 2019 at 17:38
2
Solved
Left one on the picture is the date and time from Apple and one is my application one. As you may see the text of my application appears lower than the Apple one. Which doesn't look pretty. How c...
Ireland asked 5/6, 2016 at 11:40
1
I have a class derived from NSButtonCell where I draw bezel:
override func drawBezel(withFrame frame: NSRect, in controlView: NSView) {
let path = NSBezierPath(bound: frame.insetBy(dx: CGFloat(co...
Tain asked 22/10, 2018 at 7:39
4
I'm making a couple of buttons programmatically and trying to set an action to each but I can't seem to get it to work.
In my AppController.h I have this code:
...
IBOutlet NSButton* btnZoomIn;...
Lafave asked 9/9, 2011 at 18:2
6
Solved
For some reason, when my button is disabled, the text color turns white.
I want it to stay black - how can i do that?
Billyebilobate asked 16/6, 2011 at 10:39
1
Hey so i have a table view embeded in a visual effect view, in one of the rows i have a save button and the save button every time i click the cell gets this funky background color around it.
Iv ...
3
I have an NSButton which I want to have a different background color when it's highlighted than when it's not (transparent on not highlighted, if that makes any difference).
At present, I have the...
4
Solved
I want to create an NSButton that sends an action when it is clicked, but when it is pressed for 1 or two seconds it show a NSMenu. Exactly the same as this question here, but since that answer doe...
2
Solved
1 Next >
© 2022 - 2025 — McMap. All rights reserved.