118,669 questions
0
votes
0
answers
34
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 ...
0
votes
0
answers
22
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
0
answers
21
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
26
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/...
1
vote
0
answers
32
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 ...
0
votes
0
answers
54
views
Xcode Cloud workflow stuck in Archive
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
0
answers
94
views
Does macOS have an equivalent of __FreeBSD_version? [closed]
This question about macro(s) that I would like to use for software development was closed because it does not concern programming or software development. For the benefit of reviewers that do not know ...
0
votes
0
answers
62
views
NSSplitViewController - how to get the sidebar to contain traffic controls (like Xcode 26)
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 ...
-1
votes
1
answer
58
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
61
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 ...
0
votes
0
answers
26
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 ...
-3
votes
1
answer
130
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
1
answer
96
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
56
views
Why does my bf interpreter read user input instead of outputting a char? [closed]
I am making a bf clone, and my interpreter isn't working. this Is my code
// _ dicrement the instruction pointer by 3 if the current cell value is 0
// <, >, +, -, ,, . are the same as in bf
....
0
votes
0
answers
40
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
0
answers
32
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 ...
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 ...
-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). ...
0
votes
1
answer
103
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 ...
Tooling
0
votes
1
replies
52
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 ...
0
votes
0
answers
68
views
How do I write to the docker.socket with echo and nc (or socat)?
I'm trying to learn how to talk directly to the Docker socket. Eventually I may use a proper library to do the work, but this is at least partially academic.
If I run docker ps, of course, I get a ...
1
vote
0
answers
67
views
UI tests blocked by “bash requesting screen access” popup in Mac OS
On macOS, I get a system popup when running UI tests in GitHub saying:
“bash” is requesting to bypass the system private window picker and directly access your screen and audio.
How can I disable ...
1
vote
0
answers
55
views
DNS Resolution Issue: `nslookup` Works But `curl` Fails
What I Want to Do
Install ESLint and related dependencies using pnpm in my TypeScript React frontend project (part of a Wails Go + TypeScript hybrid application).
What I Did
Ran pnpm add --save-dev ...
3
votes
0
answers
97
views
ScreenCaptureKit recording output is corrupted when captureMicrophone is true
I'm working on a screen recording app using ScreenCaptureKit and I've hit a strange issue. My app records the screen to an .mp4 file, and everything works perfectly until the .captureMicrophone is ...
2
votes
2
answers
130
views
No route to host Error 65: Python not able to fetch frame from Reolink IP camera
I would appreciate it if someone could take a look at this issue:
I am using a Reolink IP camera to regularly query a still image via Python. The camera is connected to a TP Link switch via a LAN ...