118,662 questions
1
vote
0
answers
19
views
Switching default channels using Core Audio
I wrote a Swift macOS app to control a PCI audio device. The code switches input and output channels by default. As soon as I launch the Audio-Midi Setup utility and switch channels, my code stops ...
0
votes
0
answers
48
views
How can I show a movable webcam preview above all windows in macOS without activating the app
I'm building a macOS app using SwiftUI, and I want to create a draggable floating webcam preview window
Right now, I have something like this:
import SwiftUI
import AVFoundation
struct ...
-2
votes
0
answers
29
views
2011 MacBook Air stuck on Windows — How can I safely install macOS High Sierra [closed]
I have a 2011 MacBook Air (11″ Mid 2011 or 13″ Mid 2011) that currently only has Windows installed. I want to completely remove Windows and install macOS High Sierra (10.13.6).
Here’s my situation:
My ...
0
votes
0
answers
21
views
MacOS Launch Daemons
I am trying to create a Launch Daemon that launches whenever I log in. I know that launch agents are better suited for this job, but I want to accomplish it with a launch daemon instead because It's ...
0
votes
1
answer
34
views
Weird blurring / gradient mask effect in safe area on dotnet MAUI maccatalyst
I'm building a dotnet maui application. One of the targets that I am using is Mac OS X maccatalyst. My app consists of a hybrid web control that goes into the safe area with negative top margin so ...
2
votes
0
answers
71
views
Database connection failing as soon as the parent ssh shell is terminated, even though I backgrounded and disowned
Alright, so bear with me. This took me an entire day to dig into.
what I'm doing
I'm running a C program on a remote host over SSH. The program calls a local redis database IP and port and also 8.8.8....
1
vote
0
answers
28
views
Autonomous Single App Mode (ASAM) supported App on MacOS
I'd like to write a MacOS App that makes use of the ASAM functonality as described here: https://developer.apple.com/documentation/devicemanagement/autonomoussingleappmode
I have tried to use the ...
0
votes
2
answers
95
views
How to create an image carousel that auto-sizes based on it's content?
I’m trying to build an image carousel similar to the one in the App Store, but I'm a facing a lay-out issue.
The carousel should:
Automatically adjust its height based on its content
Automatically ...
2
votes
0
answers
119
views
Rust language server not working in neovim [closed]
I just started using neovim. I could get the lua language server to work but not the rust language server (rust-analyzer). When I open a rust file like hello.rs I get the error
LSP [rust_analyzer] ...
0
votes
0
answers
56
views
Xcode 26.1.1 React Native build fails: “Could not delete ios/build” & “Operation not permitted”
I’m building a React Native 0.72.10 iOS app and hitting build errors.
Environment:
macOS: Apple M4, Sequoia 15.7.2
Xcode: 26.1.1
React Native: 0.72.10
Errors:
Could not delete /Users/.../ios/build ...
Advice
1
vote
5
replies
79
views
How to wrap C-library into SwiftPackage to use in my project?
I created test project - "TaoTester" and test package with C-library called "SwiftGit2".
After few days of work in package almost all works fine....
EXCEPT: I cannot link C-...
-4
votes
0
answers
27
views
What's the API on macOS to modify or add elements in Lock Screen? [closed]
I've been using some macOS apps like Alcove (a notch app) and Liqoria (mini player) that can put mini players and some other small widgets on the macOS Lock Screen such as weather or calendar elements ...
-2
votes
0
answers
74
views
Examining macOS memory maps for static exes [closed]
I have just been looking at vmmap. It works nicely with dynamically linked executables using mmap.
However, for a statically linked executable I get nothing of any use. Even the load address is ...
-1
votes
0
answers
113
views
Why do I still get "'override' keyword is a C++11 extension [-Wc++11-extensions]" warnings even though my CMakeLists.txt sets CMAKE_CXX_STANDARD 20? [closed]
I’m working on a C++ project in CLion (macOS, Clang compiler).
My CMakeLists.txt explicitly sets the C++ standard to 20:
cmake_minimum_required(VERSION 3.16)
project(CourseWork)
set(...
-1
votes
0
answers
63
views
Transparent, unfocusable and clickable BrowserWindow in Electron
I am creating a button that is clickable but doesn't bring the app to the foreground. To achieve this I implemented the button as a separate BrowserWindow with focusable: false and its parent set to ...
-3
votes
0
answers
32
views
Mac overlay using AppKit, objc and Cocoa that supports overlay over fullscreen applications [closed]
import AppKit
import objc
from Cocoa import NSColor, NSFont, NSBezierPath, NSAttributedString, NSForegroundColorAttributeName, NSFontAttributeName
class OverlayContentView(AppKit.NSView):
def ...
1
vote
1
answer
58
views
Coloring the SwiftUI Toggle in macOS26 no longer works
on macOS26 / 26.1 Tahoe the Toggle stopped being colored / tinted by using modifier
.tint(toggleColor())
it just remains with the current system color... e.g. blue or the tint central to the whole ...
2
votes
2
answers
336
views
Ruby SSL_connect certificate verify failed: unable to get certificate CRL on macOS
m getting an SSL error when making an HTTPS request in a Rails controller (Ruby 3.1.6):
OpenSSL::SSL::SSLError in PurchaseAttemptsController#create
SSL_connect returned=1 errno=0 peeraddr=3.175.45.47:...
-3
votes
0
answers
34
views
How to use custom version of swift in Xcode? [duplicate]
I am using Mac 14 and the highest version of Xcode that I can install is 16.2
And it comes with the bundled swift component - 6.0.3 version.
But my project requires swift 6.2 or later.
I was able to ...
1
vote
0
answers
29
views
VideoPlayer not working from archived App [duplicate]
I setup a clean MacOS Tahoe (26.2) project with this code
import SwiftUI
import AVKit
@main
struct TestVideoApp: App {
let player = AVPlayer(url: URL(string: "https://www.w3schools.com/...
0
votes
0
answers
27
views
Swift can’t load resource folder at runtime (“No such file or directory”) even though files are added to Xcode [duplicate]
I'm building a macOS app in SwiftUI and I'm trying to load a folder called Wallpapers that I added to my Xcode project.
The folder contains subfolders (categories) and each category contains wallpaper ...
1
vote
1
answer
56
views
How to create a SwiftUI Menu with multiple Pickers without extra dividers?
I'm trying to create a SwiftUI Menu containing two Picker to control content and sort. However, I cannot replicate menu appearance shown in my reference screenshot.
No matter which approach I try, I ...
1
vote
1
answer
82
views
How to dynamically update an existing AVComposition when users add a new custom video clip?
I’m building a macOS video editor that uses AVComposition and AVVideoComposition.
Initially, my renderer creates a composition with some default video/audio tracks:
@Published var composition: ...
-1
votes
1
answer
127
views
Xcode Cloud workflow stuck in Archive [closed]
I'm using Xcode Cloud to build for internal TestFlight testing. But it stuck in Archive. No warning or error. Unable to complete the workflow. I haven't encountered this problem in my previous builds.
...
0
votes
1
answer
75
views
How to use custom style for macOS app ToolbarItem (the sidebar toggle button)?
This is what I want to achieve for the sidebar toggle button:
When hovering:
When not hovering:
This is what I have now (macOS 26):
When hovering:
When not hovering:
I want to remove the border ...
0
votes
0
answers
42
views
SMAppService fails with "Operation not permitted" despite correct entitlements and plist configuration
I am building a macOS SwiftUI app from scratch that needs to install a privileged helper tool using SMAppService. I have followed Apple's documentation and sample code ("...
-1
votes
0
answers
101
views
NSSplitViewController - how to get the sidebar to contain traffic controls (like Xcode 26) [closed]
I'm trying to setup a NSSplitViewController to match Xcode 26's style. In Xcode the sidebar contains the traffic light controls. I've got the following code:
import Cocoa
// UserDefaults key for ...
-3
votes
2
answers
143
views
malformed uuid format sql server on mac
I get this error:
"message": "Malformed UTF-8 characters, possibly incorrectly encoded",
This is my real id with UUID in the database:
944CC79D-5980-4587-8A52-000A2F11D7D1
...
-1
votes
1
answer
77
views
MacOS changing extension suffix for makefile
I'm a C++ newbie trying to create my first makefile, and I'm getting the error:
unknown type name 'all'.
The makefile is literally just:
all:
clang++ helloWorld.cpp
admin@admins-Mac-mini Desktop %...
-4
votes
1
answer
78
views
How to move window control buttons (traffic light) in macOS SwiftUI [closed]
How to make it possible to place the buttons slightly below and to the right of a regular window without using (toolbar, navigationSpitView, etc) like in the Chrome or FireFox browsers
the image ...
-1
votes
0
answers
34
views
Smooth page scrolling with drag gesture
The issue I'm having is that, even though scrolling with the trackpad and the drag gesture both work to flip through pages in the scrollview, the animation when landing on a page is jerky and not ...
0
votes
0
answers
32
views
NSTextField without bezel - text beginning cut off when editing
In MacOS app I need a transparent textfield, that shows only editable text and nothing else. I am using SwiftUI, but to achieve this, I have created NSViewRepresentable for NSTextField. This is how my ...
1
vote
1
answer
53
views
Installing R package using devtools: fatal error: 'iterator' file not found
I’m trying to install an R package (specifically tess3r) using devtools. I keep running into this ‘iterator’ file not found error. I am using R version 4.3.1 (I know it’s not the latest version, I’ve ...
-4
votes
1
answer
138
views
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 270: invalid start byte - Why? [closed]
I'm doing an ultra-simple web page scraper using Python/Beautifulsoup.
Facing a key information displayed as PNG image, I've had to reach for PIL/Pytesseract.
Code being extremely simple, and working ...
-3
votes
0
answers
49
views
MacOS: Using TextEditor with AttributedString uses wrong selection highlight colour in dark mode?
I am using the new AttributedString in Swift 26 with a TextEditor in dark mode to track selections for a qualitative data analysis tool.
ISSUE:
In dark mode, the highlight colour inherited from system ...
3
votes
1
answer
102
views
Update Custom AVVideoCompositing in real time based on the project updates
I am trying to replicate how professional video editing apps like final cut pro shows and update the video player in real time based on user configuration in the editing settings. For example, I am ...
0
votes
0
answers
35
views
Is it possible for expect to log the `tty` responses to ANSI escape sequences?
Consider the following expect program, designed to log a full terminal interaction:
if { [info exists ::env(RAW_LOG_FILE) ] } {
log_file $::env(RAW_LOG_FILE)
}
eval spawn $argv
interact
When I run ...
-1
votes
0
answers
82
views
Why does my Brainfuck interpreter read user input instead of outputting a char? [closed]
I am making a Brainfuck clone and my interpreter isn't working:
// _ dicrement the instruction pointer by 3 if the current cell value is 0
// <, >, +, -, ,, . are the same as in bf
.global ...
5
votes
1
answer
69
views
Trying to print a number in MacOS ARM Assembly (M3 Chip)
I'm brand new to Assembly, and I'm trying to figure out how to get my fibonacci program to work. However, it only prints 0's, no matter what I put in the x1 register. What am I doing wrong (or ...
0
votes
0
answers
58
views
Import macOS terminal theme programatically
In the terminal's settings screen, I can export and import themes easily using the GUI.
How can I import a previously exported theme programatically?
0
votes
1
answer
59
views
Change macOS Terminal theme background colour programatically
How can I change the background colour of a macOS Terminal theme using the command line?
I can see all the themes using:
defaults read com.apple.Terminal "Window Settings"
The output lists ...
0
votes
0
answers
36
views
Squeezed width and height of NSButton Appkit
I am trying to create buttons for my player, however, I am getting a squeezed buttons even though I assigned even width and height in appkit NSButtons.
This is the final result I am getting:
private ...
Advice
0
votes
0
replies
34
views
Context Switching statistics on MacOS
On Linux, I can use tools like vmstat 1 2 or read from /proc/stat to measure the total and average number of context switches over a given time interval (for example, 1 second).
Is there an equivalent ...
1
vote
0
answers
73
views
How to remove default background modifier for the items inside the toolbars in SwiftUI? [duplicate]
I am trying to create a unified toolbare for my macos app using SwiftUI. In the apps main thread I used this modifier :-
import SwiftUI
import AppKit
@main
struct PhiaApp: App {
var body: some ...
1
vote
0
answers
49
views
MacOS Bus Error and app crash when using PyQt6
I've been hobby writing a little budget tool for myself over the last few months, and have finally gotten some ok functionality. Decided to polish it a bit and make it act more like a GUI app.
Running ...
-4
votes
0
answers
22
views
How to add icon and tumbnail image in a macOS custom screensaver? [duplicate]
I have built a screensaver for mac in swift,but couldn’t find how to add an icon(the logo image that shows up on .saver file) and thumbnail(the cover image that shows up in the screensaver catalogue). ...
Best practices
1
vote
0
replies
54
views
MacOS client (Remote Desktop Protocol) screen sharing using SignalR
Animations and typing delayed (no WebRTC)
I’m building a Remote desktop app for macOS, where the screen is captured, H.264 encoded, and streamed to a web client using SignalR.
For some reasons I ...
0
votes
1
answer
111
views
How to create a custom title bar?
I want to create a unified title bar for my macOS app in SwiftUI.
Right now, by default, it gives the title bar and the window control options at the top and our content shows below it. Now, if we ...
0
votes
1
answer
87
views
How to unselect an item in a List
Is it possible to unselect an item in a SwiftUI List on macOS? What I would like is for the selected item to be unselected when the user clicks on the selected item. Here is some code:
@State var ...
Tooling
0
votes
1
replies
54
views
How To Make SMS message from text editor, on macOS, not using AppleScript
I wanted a way to draft an SMS message on macOS from within my text editor -- and then launch to Messages with a Service item in the Services menu (right-click). After the text is in Messages, I type ...