All Questions
118,569 questions
0
votes
1
answer
28
views
Using ld on macOS to turn a raw arm64 binary into an executable Mach-O binary
I am working making an assembler that compiles bf code into an executable that can be run on macOS. Essentially, I run the compiler, which outputs a raw arm64 binary to output.bin (i.e., a binary that ...
-1
votes
0
answers
40
views
Mysterious error message: "Unable to obtain a task name port right for pid {_windowserver}: (os/kern) failure (0x5)" when calling newDocument() [closed]
I have recently restarted macOS Cocoa development, and I am running a M4 iMac with Tahoe 26.4.1, and using Xcode version 26.4.1 (17E202).
When my app starts, I get no error messages, but what triggers ...
2
votes
1
answer
98
views
Trying to use /usr/bin/gcc instead of Xcode clang for purposes of C++20
I'm attempting to use the gcc compiler installed at /usr/bin/gcc by homebrew on my MacBook running Tahoe. Every time I run it, it defaults to Xcode's clang instead. I am attempting to compile C++20 ...
-4
votes
0
answers
50
views
Homebrew Apache macOS Tahoe [closed]
I installed Apache and PHP on my system and I can access localhost. I try to set up https://localhost and I followed this tutorial. I tried several tutorials and it doesn't work. As soon as I enable /...
0
votes
0
answers
70
views
How to consume a keyboard event for a global hotkey in macos [closed]
So i have a raycast like app and for the hotkey, i recently switched to using macos apis instead of https://crates.io/crates/global-hotkey because i needed the flexibility, and I switched to NSEvent ...
0
votes
1
answer
57
views
How do I programmatically exit a custom [NSApp run] method?
As the title suggests, I have been working on a cross-platform project where I want to create apps for the macOS backend programmatically (without Xcode) through a combination of C and Objective-C, ...
Advice
0
votes
0
replies
24
views
SourceTree cannot connect to the internal network on macOS
I updated to macOS 26.2, and then SourceTree was unable to connect to internal network addresses like “172.x.x.x”, although connecting to domains worked fine.
I spent a whole night figuring this out.😣...
0
votes
0
answers
59
views
node_exporter: node_disk_io_time_seconds_total missing on macOS [closed]
Is it expected that node_disk_io_time_seconds_total is missing on macOS (Darwin)?
In diskstat_common.go I see io_time_seconds_total so I was expecting to see it on all platforms, Linux and Darwin, but ...
0
votes
2
answers
82
views
User input Form alignment
I am working on a form to allow the user to enter some input. Here is my code:
import SwiftUI
struct ContentView: View {
@State private var searchString = "TEST"
@State private var ...
-4
votes
0
answers
57
views
Shutdown/Restart MacBook without prompting user [closed]
This is for my personal device, and will be done by a background process (launch daemon). How would I shutdown or restart a macbook as soon as it can be safely done to the system, without prompting ...
0
votes
0
answers
40
views
How can I invoke the Finder's interactive "Rename…" command?
The Finder has a "Rename…" (formerly "Rename X items…") command that offers interactive pattern match & replace:
I like to invoke this operation from my own program.
Is that ...
0
votes
1
answer
151
views
How do I fix launchctl "Bootstrap failed: 5: Input/output error"?
I have written a shell script that I want to run every time I log on to my Macbook, and I'm trying to execute it via launchd.
My script is not a persistent daemon, it's supposed to write some text to ...
Best practices
0
votes
0
replies
37
views
How to use "loupe" in macos "preview" beside an object? (not cover it!)
How to avoid of covering a magnificant object by the "loupe" tool in macos "preview"? There is now way / cheat to shift away over the zoomed target. Any LLM suggestions aren't ...
0
votes
1
answer
36
views
NSButton is not sending events
I've got a .NET Xamarin app running on Mac. It's been working fine, but I've been upgrading it to .NET 10 and macOS 26.
After the upgrade, I have one dialog that is acting weird. It's the popup to ...
Tooling
0
votes
2
replies
34
views
Feasibility of capturing system + mic audio in real-time for a desktop app (cross-platform)
Question:
I’m exploring the architecture for a desktop application that needs to:
Capture both microphone input and system audio (e.g. Zoom/Meet calls)
Process the audio stream in near real-time (...