QuickTalk is a native macOS menu-bar app I built in Swift and SwiftUI. Hold Right Command in any app, speak, release, and the transcription is inserted at the current cursor.
The project is MIT-licensed and uses a user-supplied Gemini API key, so there is no QuickTalk account or subscription. The key stays on the Mac; audio is sent to Google for transcription.
I would appreciate architecture feedback from other macOS developers, especially around the menu-bar lifecycle, accessibility permission flow, and global hold-to-talk shortcut.
Two of us just graduated and we kept firing off half-typed terminal commands with voice dictation, so we built our own.
Hold a key, talk, let go, and the text lands at your cursor. Everything runs on your Mac. No account, nothing sent anywhere.
The main thing it does that others don't: it checks which app you're in before typing a line break, so saying "new paragraph" won't submit an unfinished command in a terminal or send a half-written message.
Free and open source, MIT licensed. Apple Silicon, macOS 14+.
So since i had a lot projects running recently and find it inconvenient to track them directly on gitlab, especially when you have a team. So I've made this repo - basically a neat app that appears under macbook notch when new pipeline appears.
If you find this useful give it a try and will be happy to get some feedback on improvement)
I have been building Downright, a free MIT-licensed Markdown app for macOS. The constraint was simple to state: the rendered document should feel native, but the file on disk must remain exact Markdown.
The hard part was separating parsing from decoration. A web view gives you layout quickly, but it changes the interaction model and makes source-range behavior awkward. With TextKit 2, I parse the source into a block index, preserve source ranges, then decorate the presentation without treating the rendered view as the canonical document.
A few decisions that ended up mattering:
- The raw source remains authoritative.
- Links, tasks, tables, math, Mermaid, footnotes, and code blocks are decorations over known ranges.
- Quick Look and Finder thumbnails reuse the same rendering model.
- External saves are watched at the parent directory because many tools replace a file through an atomic rename.
- Dirty local edits are never overwritten automatically.
- Performance budgets run in CI so large Markdown files do not quietly regress.
For Mojave Paint I've had an anti-subscription stance from the start, it being an installed binary not a service that has ongoing infrastructure costs.
But I recently installed Final Cut Pro and instead of $300 to buy it I do the $13/month subscription. In that case it's nice to have the option and it's made me rethink hating on subscriptions. Maybe subscription is fine if:
a. It's an alternative to buying outright b. It's priced cheap enough
Most people's subscriptions are simply way too expensive. For FCP, the break even point is about two years, which makes the subscription seem like kind of a deal.
So for Mojave Paint, say I get the feature set rounded out and start charging $20 for it, the right price for subscription would be $1/month. I'm sort of leaning to this model because the Mac App Store has no free trial option, so you're stuck with IAP or Subscription and I pretty much hate IAP and the huckster marketing you have to put in there of "Go Pro!" So what I'm kind of leaning to is selling: 1. On my website via lemonsqueezy or whatever, perpetual license with 2 years of updates (Sublime Text style), and 2. The only version in the Mac App Store is the cheaply priced subscription version, which you can consider to be like a free-ish trial.
Has anyone had success with such a pricing scheme?
Mojave Paint is coming along nicely but my naive understanding of observability/reactivity/dependency flow, whatever you'd call it, it starting to weigh on me.
This screenshot shows conic gradients I just added, in this case being used in a Gradient Fill adjustment layer. I would scrub the angle picker in a circle and it would chug along at 2 fps because it was mutating the model every tick which rebuilds the view in that Properties panel including the color stops and everything else. So now I have a copy of the model that only the GPU rendering side looks at (and of course the specific control you're interacting with), and when you release the drag the real model updates and triggers a SwiftUI redraw.
This is all kind of a lot of manual work. I'm new to Mac development but was a web dev for 20 years and they have all kinds of approaches over there. rxjs, React.memo, signals, etc, etc. It would sure be nice if I could "code dumb" here and employ some kind of library or system to do fine grained change detection. Are there some common approaches used in the Mac world?
My app needs this permission, but I have a customer reporting that they are not prompted to allow it after installation, and it doesn't even show up in Settings where it should be, for my app (other apps show there). Unsurprisingly this breaks my app. Anyone else seen this?
(I don't have a suitable device to put 27 on to repro myself).
My team is distributing a cross-platform app outside the Mac App Store via ZIP file. The app works perfectly on Windows, but on macOS, while the ZIP downloads and extracts without issue, the app refuses to open. Users see either the app appear in the dock then immediately disappear or a Gatekeeper prompt saying the developer cannot be verified. We suspect the root cause is related to code signing and/or notarization, but we're not entirely sure where the breakdown is occurring.
We have a few questions as we work through this. For ZIP-based distribution outside the Mac App Store, is both a Developer ID certificate and Apple notarization required on current macOS versions? We've also seen references to using ditto instead of Finder's built-in Compress option when packaging the ZIP. Is that necessary to properly preserve the app bundle structure and extended attributes?
Any guidance on where this process might be going wrong would be hugely appreciated. Thanks!
On Windows it is common to start several copies of the same app. Each shortcut on the desktop or in the taskbar can launch its own process. For many tools this feels natural. You click a second shortcut and you get a second independent window with its own lifetime.
On macOS the situation is different. The system is built around one Dock icon per app bundle. If you try to launch the same app twice, the system usually routes you back to the running instance instead of starting a new one.
There are workarounds. In Terminal you can do
open -na 'Some App'
This forces a new instance of the app. The main problems
You cannot pin that specific instance to the Dock as a separate icon
You often end up writing small scripts or duplicating the original app bundle
Duplicating bundles is noisy and breaks automatic updates for the copy
So running multiple instances is possible, but not very convenient in day to day use.
Risks when several instances share the same data
Even when you manage to start two instances of the same app, you still have a deeper problem. Most macOS apps assume they are the only process using their own data under the user home folder.
Typical shared locations
~/Library/Preferences
~/Library/Application Support
app specific folders under ~/Documents or hidden directories
If two independent processes read and write the same data at the same time, many things can go wrong
Configuration files written on quit by both processes in undefined order
Lock files that were never designed for multi process access
SQLite databases that only ever see one writer in normal use
Partial writes or corruption when one process truncates a file that the other still uses
Some apps will tolerate this better than others. Many will never have been tested in this scenario at all.
Why separate data per instance is useful
There are also positive reasons to have multiple instances with separate data, not only danger to avoid. A few examples where distinct profiles are helpful
Discord or Slack with different accounts for work and personal use
Dropbox or other sync tools with different storage roots
Visual Studio Code, Qt Creator, Arduino IDE, Emacs or similar tools with per project environments
Browser based tools or Electron apps with different profiles for testing and production
Developer workflows where you want a clean profile for experiments while keeping the main one stable
In these cases the ideal situation is not two processes that share the same support folder. The ideal situation is two processes that behave like they belong to two different users, so no file or database is shared at all.
Manual ways to get data separation
Before there was no dedicated tool for this. The only practical options were manual scripting or duplicating the original app bundle.
You can write scripts that pass specific command line options to choose a custom data directory or profile folder
You can override the HOME environment variable in your script so that the launched process uses a different folder tree for its data
For those apps you can start a second instance like this
Now the app sees a different home directory. Its Library/Preferences and Library/Application Support live under that new root, so there is no shared state with the original instance.
Limitations
Sandboxed Mac App Store apps ignore this pattern and always use the standard home based paths
You need some wrapper that sets HOME and command line arguments, then launches the real binary
If you want a proper app bundle with its own icon in the Dock, scripting alone is not enough. You end up building small helper bundles by hand or by script
This is all doable, but it is a bit of work for every app and every profile.
A higher level tool that automates this pattern
Because I wanted a simpler workflow, I built a small Mac App Store tool named Parall. The idea is to automate the pattern above. It is written in Objective-C and runs on macOS 10.10 and newer.
Parall lets you create tiny shortcut bundles that
launch a target app as a child process
add command line arguments for that specific shortcut
override environment variables such as HOME so each shortcut gets its own directory tree
use a custom shortcut name and icon for each profile
generate a unique bundle identifier so macOS treats every shortcut as a separate app
support 'Open With' so files can be opened directly with a specific shortcut
pass through URLs so links and custom URL schemes are routed to the correct shortcut instance
With the HOME environment override Parall also prepares the required folder structure for a typical home directory and creates symlinks for shared directories that the app needs in order to function correctly.
Internally it uses data about common apps to choose the right arguments or environment variables automatically. At the moment it has presets that are tested to work with:
Other non sandboxed apps often work by using the HOME override alone.
Limitations
Sandboxed apps cannot use custom HOME or data-path redirection. They can run multiple isolated instances, but their data remains inside the system-managed sandbox container.
If you use a Parall shortcut together with the original app, start the original app first, then launch the shortcut.
To avoid any launchâorder dependency, create two shortcuts and use those exclusively - they can be started in any order.
From the programming point of view I am interested in discussion of:
how safe or unsafe you consider multiple instances with shared data
whether you design your own apps to handle this situation
whether the pattern of per instance data roots and environment overrides matches your experience on macOS
Update: Parall v1.1.1 brings a completely new way to control apps. You can now add a tray icon menu to any shortcut so the app is always one click away in the menu bar while it is running. For supported browsers the tray menu also lets you open a new window or a new incognito window directly from the menu.
Reverse engineered Apple's Assets.car format and built a parser to extract assets. View/export images, colors, PDFs from compiled asset catalogs. Swift/SwiftUI. https://github.com/cgnkrz/QLCARFiles
We've noticed on an M1 Max laptop, the app (which should use as many cores as possible) is being confined solely to the two efficiency cores, no matter how much load we throw at it. What could be causing this? The computer is plugged in and set to "high power" mode in the system settings, energy pane.
Other than marking DispatchQueue priority as .userInitiated or similar, is there anything else (like a system entitlement?) to ensure that the whole CPU is maximized?
There are a lot of pages written over the years on localization, but some of the techniques are now quite dated and can be more confusing than helpful, particularly with SwiftUI.
How to extract localizable strings for translators
How to import translations back into the project
How to elegantly handle pluralization and parameter ordering
Mainly I wrote it for myself, but maybe somebody else would find it handy. Even if you donât have plans to localize your app, it can still be a good idea to write code in a way that wouldnât be a giant pain if you ever decide to.
Starting up with Mac OS system programming with quite a confusion. Should I pick Swift or Objective C or Objective C++? I don't need iphone/ipad/tv for now, just Mac OSX.
Read online that Swift is not compatible for older versions of Mac OS, frequently changing, so will require frequent software updates/releases. And am not sure if Swift is used for kext or SYSEX or other low level code, most libraries are in Objective C, I guess? Even if I learn Swift, will have to learn Objective C to call system level library functions?
Then if I go for Objective C and keep it simple, read that Apple is rewritting objective C libraries to Swift and may abandon Objective C in near future? For now, I have started Objective C, but not sure if doing right.
I mostly code in Rust, which has bindings for Core Foundation, Cocoa, etc. Will it be wise to try that or its a flawed approach for production?
Otherwise, would it be ok, without too much complexities and future issues, to have cross platform code written in Rust and export Mac OS specific code as FFIs to be called from Rust to keep a single Rust binary?
I built a small open-source USB inspector for macOS 15+ (USBview HS) because my keyboard kept freezing after sleep and I got tired of crawling under the desk to replug it.
It pairs a native SwiftUI app (plus menu bar popover & floating mini window) with a Haskell CLI engine that reads the macOS I/O Registry directly.
What it does:
Live USB topology tree â controllers, ports (USB 2/3 companion lanes merged), physical USB 3 hub pairing, nested hubs, and devices with auto-refresh and a connection log.
One-click USB device reconnect â resets a stuck peripheral via IOUSBHostDevice.reset() from the main window or menu bar (blocks hubs/exclusively-owned devices and warns about mounted BSD disks before resetting).
Deep device inspection â VID:PID, negotiated speed, serial number, USB-C transports, per-port current limits & error counters, Ethernet/storage details, and on-demand configuration descriptors (with actual Interrupt/Isochronous polling rate in Âľs/ms & Hz, high-bandwidth packets, and bMaxPower in mA).
When our 4 devs went from one coding agent each to five each on our iOS app, our GitHub Actions bill went from about $410 to about $2,050 a month.
20 agents Ă 5 pushes a day Ă ~15 macOS minutes per push is 33,000 minutes a month. Most of those runs failed on things a local build would have caught in a minute: a missing import, a broken test, a SwiftLint error.
The bill wasn't the only problem. Running 300 macOS jobs a day through 5 concurrent slots (capped by GH team plan). Averaged over an 8-hour day it's ~60% of our total macOS capacity, and agents don't push evenly, so we spent more watching queues.
So we moved the checks onto our Macs. That became HAR, an open-source CLI/MCP server:
- Each agent gets its own slot: a git worktree, plus its own ports and database for our local backend. Xcode keys DerivedData by project path, so parallel `xcodebuild` runs don't collide.
- Checks live in `.har/` as plain stages (ours are SwiftLint, `xcodebuild build` and unit tests). `har env verify` runs them in a fixed order inside the slot.
- A pass is tied to the tree hash that was checked, and a commit gate rejects anything unverified, so agents can't push their trial and error to CI.
Each slot acts like a local CI runner, limited by the Mac's cores and RAM instead of GitHub's job cap. Hosted CI still runs, but only on changes that already passed locally. Our bill now <$500 after two months. First month it reduced but we were tweaking the local checks and signatures.
Works with Claude Code, Cursor, Codex or any MCP agent. Apache 2.0.
What a fun change. Whatâs worse: âHey, this is way too simple, letâs over-engineer this for no good reason!â, or âGreat idea, letâs do it!â?
Your mouse wheel and your trackpad shouldnât have to agree on scroll direction.
That was the starting point for ScrollFix. I wanted a conventional Windows-style wheel, natural trackpad scrolling, and middle-click autoscroll on my Mac. Changing macOSâs scroll setting also changed the trackpad, so I started building a small Swift/SwiftUI menu bar app. Iâm the maintainer; itâs free and open source under Apache 2.0.
What it does:
⢠Separates mouse-wheel direction from trackpad scrolling.
⢠Offers a Direct (Windows) mode with immediate wheel steps and adjustable scroll distance, plus smoother alternatives.
⢠Adds middle-click autoscroll on ordinary content: move away from the anchor to scroll, then click to stop.
⢠Preserves native middle-click on links, so supported browsers can open them in a new tab.
The interesting macOS development problem turned out to be the handoff between devices. A trackpad gesture can still be producing momentum when a mouse-wheel event arrives. Applying one shared âlast deviceâ state can make the next gesture scroll the wrong way.
After feedback on an earlier r/SwiftUI post, the implementation now separates gesture and momentum state, adds optional source diagnostics, and checks that the event tap is actually valid and enabled after recovery before reporting it as running. The smoothing path also cancels the old tail when you scroll in the opposite directionâparticularly noticeable with a free-spinning wheel.
For middle-click links, it uses a bounded Accessibility hit test and preserves the original button event sequence rather than replaying a synthetic click. The direction/wheel engine runs on its own run loop; the SwiftUI interface receives state snapshots.
The current source has 215 passing offline tests. Those arenât a substitute for a hardware matrix: source classification is still heuristic, especially for high-resolution wheels without gesture-phase information.
No account, telemetry, or network calls. macOS event permissions are required; the app doesnât subscribe to typed-key events.
The updated version is currently a source build for macOS 13+ with Swift 6. The older downloadable preview predates these changes; a notarized release is still pending.
For anyone who has worked with Quartz event taps: which high-resolution wheel / trackpad-momentum handoff patterns have you found worth adding to regression coverage?