Toggling DoNotDisturb with code in macOS Big Sur - notificationcenter

In earlier versions of macOS you could toggle DoNotDisturb by modifying the properties file for NotificationCenter. On the Big Sur beta however that's not the case anymore. The new ControlCenter does not seem to write to any property file when you toggle DoNotDisturb, or maybe I just can't find the right file.
Any ideas on how to toggle DoNotDisturb on Big Sur using code?

Related

macOS alert window in Swift

Is it possible to create a window/panel like the one which appears when you run a Xcode project. This type of windows appear through out macOS, but I can't seem to find out what they are called.
Here are examples:

VSCode Minimap isn't working, is my machine too old?

Minimap is present, but doesn't render any content.
This is on my 2006 Mac Pro, running El Capitan (my hardware won't support any further upgrades).
I have VSCode running with the exact same settings on my MacBook Pro, which is running the latest OSX, and the minimap is working fine there.
The minimap on my Mac Pro displays on the right side, with the correct width and semi-transparent background, it even scrolls properly as I scroll through my code. It just doesn't display any content whatsoever.
I've tried Toggle Minimap - that works properly, shows and hides as you'd expect, except still no content when it's turned on.
I've tried different fonts, changing minimap column width, Render Characters Off (to use color blocks instead), and changed sides (right and left), I've tried running VSCode with all extensions disabled. Obviously tried restarting VSCode, and even rebooting.
Nothing I've done has made the minimap render any content, which makes me wonder if either my hardware is too old & not supported for this, or I have a broken/missing library.
It's fine if I can't get it working, but it would be nice. Any thoughts or advice are appreciated.

Get rid of file icon shadow when file is not saved in Xcode

When a file was just edited and not saved in the Xcode editor the icon of the file in the right pane is darkened a little, and because I have OCD this drives me absolutely crazy and I end up having to click Ctrl+S every time I do anything as simple as commenting a line of code or moving a button 1 pixel in storyboard.
I am using Xcode 10.1 Beta 2, but this happens in all versions of Xcode.
How do you make it so the file is never darkened?
I have the same problem in Xcode and I always command s everything as well. I have looked for a way to disable this, but for now I don’t think there is a way... Maybe they’ll add a way to turn this off in another update soon :)

Is it a bug of NSTextView in macOS Sierra?

Switching to the released macOS Sierra I've noticed a very strange behavior of the NSTextView object. And what really strange is that it reproduced even on a new empty project.
Just create a new project in Xcode, add Text View in Interface Builder and run the app. Just type any text so text view become having two lines. But do not hit Enter.
Now when you grab your mouse and select the beginning of the second line, the cursor will jump onto the end of the previous one! The interesting part is that when you move the cursor with keyboard everything works fine.
How to avoid that glitch? I'm sure that not just me is building an app on the macOS Sierra :)

Aptana Studio 3.1.1 on Mac OS X Lion 10.7.3 - vertical scrollbar frustrations

This morning I accepted an Aptana Studio 3 upgrade to build 3.1.1.201204131931.
Prior to the update, I had a clear and permanently visible vertical scroll slider on each open file window. These now appear to have been replaced with a newer Mac OS style scroller which is troublesome to activate, disappears immediately the mouse moves away and so murky it was hours before I even noticed it was there...
The mew behaviour has a profound effect on my efficiency, as I am now far from intuitively aware of my location in the source files.
Is there some way of restoring the original behavior? Defaults restoral throughout and many hours of search of various preferences settings, online forums and user guides have brought nothing. Very frustrating..
Thanks
I think by default Lion only shows scrollbars when scrolling.
You can change this through OS X preferences under "General". Change the "Show scroll bars:" option to "Always".