Category "macos"

MacOS: reading shared preferences in Swift and ObjectiveC

I have a project that mixes Swift and objective c. The controller for my preference panes is written in Swift. I can’t seem to read those preferences in O

Tkinter button background color is not working in mac os

I am trying to change the bg color of a tkinter button on my mac (catalina) but instead of getting a colored background, it is showing a blank space in the layo

Prevent NSTimer from firing when in sleep / PowerNap

How can I prevent a (slightly non-standard) NSTimer from firing on macOS, when the MacBook's lid is closed and the machines is supposed to be at sleep? Or more

Error installing python 3.7.6 using pyenv on new macbook pro M1 in OS 12.3+

I am struggling to install python version 3.7.6 using pyenv on my new macbook pro M1 running on mac os 12.3.1. My configuration $ clang -v Apple clang version 1

Bootable USB Ubuntu issue [closed]

all. I was trying to download Ubuntu to a new and empty USB stick, from my Mac. After just a few small hiccups, this big hiccup occurred, and

Unable to install turtle module

Collecting turtle Using cached turtle-0.0.2.tar.gz (11 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python

Unable to cast Playlist to FolderPlaylist using obstmusic Java applescript wrapper for MacOS Music app

Trying to use https://github.com/japlscript/obstmusic to talk to Apple Music app on macOS with Java, I used to write native AppleScript and then java applescrip

Loading docx file into NSAttributesString not showing images (MacOS Swift)

I am loading docx data into an NSAttributedString, and then rendering it into an NSTextView. It mostly works, but it does not load the images, I checked the att

Rotation reverting on Mac display settings

I have four Dell monitors connected to Mac Pro. Rotation reverts to Standard for other displays if I change one to 90 degrees in System Preferences -> Displa

MacOS CoreAudio buffer playback produces annoying noise

MacOS CoreAudio buffer playback produces annoying noise between correct sound. I'm interested to play valid .wav data though the buffer. Why I'm playing a .wav?

cv2 SystemError when using webcam on MacOS

I am trying to run a very simple script using opencv, which should display frames from my webcam (on a 2019 macbook pro running OS Catalina) until interrupted.

Adding Python 2.7 to an app packet after macOS 12.3 does no longer include Python

Last year I got a PortJump packet from Codeweavers for an open source Windows software, not knowing that it uses Python 2.7 supplied by macOS < 12.3 only (P

Can I replace MariaDB with MySQL in Bitnami MAMP?

I am maintaining an old, large CakePHP project which relies on the JSON database column type. This type is supported by MySQL but not by MariaDB. Changing out t

Broken project in XCODE objective c

Hi, Does someone have a clue what is the reason for this broken project in xcode 13.3.1 The tab with the project settings, properties is empty!!! Check the scr

SwiftUI text field orphan on macOS

I have a text field like this Text("Hello, one two three four five six seven eight!") .frame(width:270) .border(.blue) When it

Mac terminal not valid context

I'm a new Mac user. I'm receiving this error every time I open my terminal and I'm not sure what its about. I was hoping someone can help me with this issue. Th

How to run Python as X86 with Rosetta2 on ARM MacOS machine

I have a python app with downstream dependencies on dynamic libraries that are available as X86 only. The app runs on a X86 MacOS machine, but on a ARM MacOS ma

Mac Terminal Wont Open When I'm Using QT Creator Anymore

Before I updated both QT and Xcode on my mac, my computer just stopped opening up the terminal when I went to run my code. It had worked for months and is still

Can't run on dart_vlc on Flutter 2.10.4

dart_vlc (https://github.com/alexmercerind/dart_vlc) was compiling for macOS up to now, but after upgrading to Flutter 2.10.4 I receive this error while compili

Can I use Xcode font on QtCreator?

After using QtCreator for a long time on Windows I was comfortable with it. But now I'm using it on macOS too and it feels different. I noticed default font is