Category "macos"

What is the endian order of the host machine/device?

Actually the initial question was: "What exactly the kCGBitmapByteOrderDefault is?" Because sometimes CGImageGetByteOrderInfo(CGImageRef image) returns kCGBitma

/.zprofile:10: parse error near `$(/opt/homebrew/bin/...' keep on getting error while opening terminal on Mac

I tried to install JAVA_HOME path while adjusting (vi ~/.zshrc). Somehow, I messed up with existing file. I don't know how to fix it. I a bit newbie, so elabora

Unable to open url to the Mac App Store in an iOS app launched on Mac with Apple Silicon

I have this code to open a link to the App Store for the user to write a review: guard var urlComponents = URLComponents(string: "https://apps.apple.com/app/any

Framework doesn't build for macOS target: no such module 'SomeFramework' & failed to build module 'MyFramework'

Hello guys, I faced a weird problem with my framework imported into my app. MyFramework uses some other frameworks like OpenSSL etc. I build MyFramework with t

Focus on a TextField using a keyboard shortcut

I have a macOS Monterrey app that has a TextField on the toolbar. I use this to search for text on my app. Now, I'm trying to add a keyboard shortcut to focus o

Mac M1 apple chip: Hyperledger Fabric samples download: "2.4.1 platform specific fabric binary is not available to download" Error

On my mac M1 computer, Trying to download Fabric binaries and images using following command: curl -sSL <URL for Fabric 2.4.1> | bash -s Getting the err

MacOS IOkit get services by property name in Swift

I would like to get all services that contain specific properties. AppleDeviceManagementHIDEventService <class AppleDeviceManagementHIDEventService, id 0x1

Memory leak issue virtual camera macOS, swift SwiftUI zoom caphost

We are developing a application with virtual camera plugin for macOS by using swiftUI & swift. It has also C++ & objective C library. When we use that p

2D graphics API for an interactive GUI to replace OpenGL on MacOS

Apple has deprecated OpenGL. In anticipation of OpenGL being removed from MacOS altogether, I would like to rebuild my mouse driven GUI using some other graphic

SwiftUI: Get sidebar isCollapsed state on macOS

I'm using a NavigationView to create a sidebar on macOS. I can toggle the sidebar using this code: Button { NSApp.keyWindow?.firstResponder?.tryToPerform(

K9s can't open because 'po' command not found

I was using k9s during work and when I try to start it, I got the error message : Boom!! app run failed 'po' command not found. I searched for how to reinstall

How to avoid to have is bundle app quarantine flagged by MacOS on Mac M1?

everytime I share a bundle app to a friend, he get his .app quarantine-flagged and he need to use xattr -c "Bundle.app". How to avoid that ?

NPM Error "Can't find Python executable" in MacOS Big Sur

I've been looking for the answer to this for a good solid week now, with no success. I've looked at every StackOverflow post, every article from Google and ever

CODE . command no longer works in terminal

Yesterday, the "code ." command was working perfectly fine. Overnight I did update my Mac to Monterey and now, I'm not understanding the exact reason why this c

ASP.NET EF Core Database update on Mac using docker image Azure Sql Edge

I am new to mac and got Azure Sql Edge running using docker image. This is the command I ran to run the image. docker run -d --name SQLServerImg -e ACCEPT_EULA=

.zshrc:3: parse error near `>' when i open terminal on mac

i have error when i open my macOS Monterey 12.3.1 terminal after installing flutter like this : Last login: Sat May 14 10:49:04 on console /Users/malela/.zshrc

Atom IDE Tab Groups

I was a macbook user in my previous job. I used Atom IDE as a text editor there because I liked how it handled projects in the LHS tree view, and because I lik

What is the difference between homebrew casks 'dotnet' and 'dotnet-sdk' and formula 'dotnet'

Running brew search dotnet shows the following ❯ brew search dotnet ==> Formulae dotnet

How do I use gshuf or python in the terminal to randomly shuffle files in a folder on mac os?

I am trying to randomly shuffle the files in a folder on my mac. I came across a suggestion to use gshuf (part of coreutils), but I don't know exactly what comm

Electron desktopCapturer for MacOS

I need to stream audio in my electron app from the macOS, however, I have hit the following limitation. This is from the electron documentation: https://www.ele