Questions tagged [macos]
macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers.
38
questions
2
votes
3
answers
136
views
6
votes
1
answer
560
views
Play Snake Game on Mac OS Terminal using C with ncurses Library
Made a simple snake game in C.
I am just having some fun with program and using this as a spring board of knowledge in hopes to get some confidence to maybe try different kinds of projects. I am ...
1
vote
1
answer
75
views
Javascript CLI to boot iOS simulators, install project, extract data, and merge into JSON
I'm a DIY "dev" - so I really create things that I need or think they'll end up helping others.
I wrote this Swift Package so the iOS community could get device bezel radius' to help with UI ...
4
votes
1
answer
2k
views
Efficiency of wgpu-based 2D Batch Renderer
I've been working on a WebGPU-backed Rust renderer that batches together 2D colored sprites. I hadn't gotten onto the "sprite" portion of it yet, but I'm already finding some performance ...
2
votes
1
answer
120
views
macOS: resetting balance to center (0.5) using Swift
Due to some bug somewhere, my speaker balance kept moving off-center and it was getting annoying. So I cobbled together the code below (based on this question) which—to my surprise—does compile and ...
10
votes
2
answers
1k
views
Wi-fi scheduler written in C
I'm new to C and programming in general (some minimal prior exposure to JS and python). This is also my first time working with shell commands, scripts, and cron. This program works on my macOS and ...
3
votes
1
answer
104
views
Break music player into usable components in SwiftUI
I created a music player using swiftUI.I need to ask a question when I break up my player into usable components. How should I take this approach with the music player? because the music player is one ...
1
vote
2
answers
242
views
Trying (and failing) to implement the best conventions on OOP Swift
I'm making a MacOS app that will do some analysis on the user's calendar data. For now it only supports Apple's native calendar (EventKit), but I will later add ...
8
votes
2
answers
1k
views
realpath substitute with --relative-to and --relative-base support
In a bash 3 script for OSX machines, I needed the functional equivalent of the realpath command, complete with support for the ...
2
votes
0
answers
22
views
bash script to delete files resurrected by Adobe InDesign bug
After a March update, Adobe Indesign will resurrect removed directories it was responsible for creating in the first place, but not any files except for one file called "AdobeFnt.lst". So where once ...
2
votes
1
answer
127
views
Moving files from a directory to multiple with names same as file
I have a folder containing thousands of files and directories. I
would like to move all the files that are not contained in a sub
directory into a directory and name it the file name, while ...
2
votes
0
answers
43
views
Bash script to scp specific, most-recent files from remote server
I'm writing a helper script that I wish to be able to share with my co-workers. We all work using macOS Mojave, but all have their own shell configurations. For example, I actually use ZSH and bash 5....
2
votes
0
answers
27
views
Auto re-connecting to a VPN on OS X and pointing Squid accordingly
We need to tunnel certain applications over a VPN at work. Ideally we would use a dedicated firewall/network appliance for this but the only permanent infrastructure we have are Mac Pro's running ...
3
votes
1
answer
110
views
Batch rename files recursively, and number the directory index
When dealing with iOS app bundle, It is not convenient to get the file by its path, but loading it by its name.
Need to batch rename images recursively, with Mac Bash. And to make the name unique, ...
3
votes
1
answer
40
views
Batch rename files with Mac Bash,while the dir index should be recorded
I need to batch rename images with Mac Bash,while the directory index should be recorded.
To rename files ,turn
...