r/macosprogramming • • Sep 05 '20

Tutorial - Cocoa: implement a privileged Helper

11 Upvotes

If you ever wanted to implement a privileged Helper with a macOS application, you might have realised how few the resources are to do so. As I implemented one and struggled, I thought this could be a could idea to write a tutorial. If you are interested, you can find it on my blog.


r/macosprogramming • • Sep 26 '19

I came across this iTerm2 screenshot. Can you help me achieving this customisation?

Post image
11 Upvotes

r/macosprogramming • • Oct 19 '25

How Should a Beginner Properly Start iOS Development? Seeking Advice from Experienced Developers

10 Upvotes

Hey everyone!

I'm a 2nd-year Computer Science student who's excited to dive into iOS development, and I'd really appreciate some guidance from the experienced developers in this community.

## My Current Background

I have a solid foundation in programming fundamentals through my university coursework (data structures, algorithms, OOP concepts), and I'm familiar with general software development principles. However, iOS development is entirely new territory for me, and I want to make sure I start on the right foot.

## What I'm Looking to Understand

  1. Learning Path & Technologies**

- Should I start with UIKit or SwiftUI? I've heard conflicting opinions about this

- How important is it to learn Objective-C in 2025, or should I focus solely on Swift?

- Are there any foundational Apple frameworks I should prioritize learning early on?

2. Roadmap & Structured Learning**

- Is there a recommended roadmap or learning sequence I should follow?

- What skills/topics should I master before moving to more advanced concepts?

- Should I learn iOS development in a linear fashion, or is it better to learn as I build projects?

- Are there any official Apple learning paths or certifications worth pursuing?

3. Common Mistakes to Avoid**

- What are the most common pitfalls beginners face when starting iOS development?

- Are there any bad habits or patterns I should consciously avoid from day one?

- What misconceptions did you have as a beginner that you wish someone had corrected earlier?

4. Project-Based Learning**

- What types of projects would you recommend for someone at my level?

- Should I build several small apps or focus on one comprehensive project?

- At what point should I start contributing to open-source iOS projects?

5. Best Practices & Design Patterns**

- Which iOS-specific design patterns (MVC, MVVM, etc.) should I learn first?

- How can I develop good habits around memory management and app architecture from the beginning?

- What resources do you recommend for learning iOS best practices, not just syntax?

6. Apple Ecosystem & Tools**

- Beyond Xcode, what tools should be in my toolkit?

- How important is it to learn about TestFlight, Instruments, and other Apple developer tools early on?

- Should I get comfortable with CocoaPods/SPM from the start, or wait until I'm more experienced?

## My Goals

My goal is to build a solid foundation over the next 6-8 months, create a few portfolio-worthy apps and pursuing iOS development as a career path after graduation.

## Specific Questions

- How many hours per week** would you recommend dedicating to learning iOS development while managing university coursework?

- What's the best way to stay updated** with Apple's annual changes and new frameworks?

- When should I start thinking about** publishing apps to the App Store?

- Are there any mentorship programs or communities** specifically for beginner iOS developers you'd recommend?

---

I know this is a lot of questions, but I genuinely want to learn the right way rather than picking up bad habits I'll have to unlearn later. Any advice, resources, or personal experiences you're willing to share would be incredibly valuable to me.

Thank you in advance for taking the time to help a beginner. I'm committed to putting in the work and learning properly!


r/macosprogramming • • Jul 06 '25

We built an open-source speaker diarization solution for Swift with CoreML models

Thumbnail
github.com
10 Upvotes

We were looking for a speaker diarization solution that could run every few seconds with transcription on iOS and macOS, but native Swift support was sparse or locked behind paid licenses. It's a popular request in many speech-to-text use cases, so we wanted to open source it and give back to the community.

sherpa-onnx worked, but running both diarization and transcription models slowed down older devices - CPUs just aren't great for near realtime inference. To support our users on M1 Macs, we wanted to move more of the workload to the ANE.

Rather than forcing the ONNX model into CoreML, we converted the original PyTorch models directly to CoreML, avoiding the C++ glue code entirely. It took some monkey-patching in PyTorch and pyannote, but the initial benchmarks look promising.

Link to repo: https://github.com/FluidInference/FluidAudio

We would love to get some feedback - we are working on adding VAD and Parakeet for transcription. We're wrestling with the model conversion right now.


r/macosprogramming • • Feb 17 '22

Many Lessons Learned Building a Cocoa App

10 Upvotes

Hi! I've been away from AppKit (working almost entirely in iOS) for over a decade now, but recently decided to port an Apple //e emulator to macOS, and took the chance to try to build as "complete" an app as I could. I also decided to write down the lessons I learned along the way:

https://github.com/sh95014/AppleWin/wiki/Lessons-Learned

A lot of them come from Stack Overflow and other online sources, but they're in a format that's more easily digestible at least to me. Maybe somebody else would find them helpful.

...

And while I'm here, does anybody know how to make search indexing work for Apple Help books? Specifically:

hiutil -I lsm -Cf MyApp.helpindex -a -s en -l en . -vv
hiutil -I corespotlight -Cf MyApp.cshelpindex -a -s en -l en . -vv
hiutil -P 

doesn't seem to generate any terms in the corespotlight case although the anchors do work. The documentation and tooling in this area, ironically, is absolutely dismal even by Apple standards.


r/macosprogramming • • Dec 30 '18

Do you guys think Apples going to modernize Cocoa / Appkit this next WWDC?

10 Upvotes

Apple is bringing UIKit elements over to macOS enabling developers to port some iPhone apps over to macOS.

Do you guys think Apple will update a vast majorly of the macOS framework to like how it is on iOS?

I hope this happens because I feel like there isn’t a whole lot of great documentation on the macOS side of things.


r/macosprogramming • • 27d ago

Free open-source Macbook Storage Cleaner

9 Upvotes

Built a small open-source macOS cleaner because my 500GB MacBook keeps running out of space. 😅

One useful feature is a smart simulator cleaner — it detects redundant iOS simulators from the same major release, so you can remove older versions you no longer need.

It also helps clean Xcode DerivedData, caches, and other developer files.

Feedback, contributions, and GitHub issues are welcome. 🙌

Repo: https://github.com/MahiAlJawad/TrashIT-MacOS


r/macosprogramming • • Sep 14 '26

SwiftPlayer – an MIT-licensed native Mac video player in pure Swift, no dependencies

9 Upvotes

I just open-sourced SwiftPlayer, a lightweight video and audio player for macOS. It's written entirely in Swift using only Apple's own frameworks (SwiftUI, AVFoundation, VideoToolbox) — no third-party libraries at all.

Repo: https://github.com/scadavide55/SwiftPlayer

Website: https://scadavide55.github.io/SwiftPlayer/

Why I built it: my mom's 2020 MacBook Air (i3) was struggling with other video player with the battery draining fast and fans spinning constantly. I wanted a native player that used Apple's hardware acceleration without the bloat.

**Why it's fully dependency-free**

I wanted to see how far you can get with pure first-party frameworks before reaching for a package manager. Turns out: pretty far. The whole project is more than 1,500 lines of Swift across 8 files, and there isn't a single `Package.swift` or `Podfile` in sight. The tradeoff is a few NSViewRepresentable bridges to handle key events, mouse tracking, and the AVPlayerLayer — but it keeps the build clean and the code easy to audit.

**Features**

- Hardware-accelerated playback (Apple Silicon media engine; VideoToolbox on Intel)

- Subtitle support: SRT, VTT, ASS/SSA with adjustable delay

- Picture in Picture, playback speed (0.5× – 2×), skip ±10s

- Volume slider + keyboard shortcuts

- Drag & drop file loading

- Minimal auto-hiding UI

Current limitations worth mentioning:

This is my first public project. Feedback on architecture, testing, or packaging is welcome.


r/macosprogramming • • Jun 06 '26

Was tired of Swifts ugly documentGroup tabs

Thumbnail
cyberwriter.app
9 Upvotes

Free open source drop in package. Probably won't pass app store muster since their tab api is private, but I haven't tried it yet. But at least we don't have to look at ugly ass grey tabs anymore. Also made a rudimentary tab grouping function for hiding and showing groups of tabs, apple doesn't ship that natively even though they put in into freaking safari.

Signed and notarized example app in the github release section. The app uses only the tabberwocky library, it's my test bench.


r/macosprogramming • • Jul 02 '25

Update: We just launched Wallper on Product Hunt (native 4K animated wallpaper app for macOS)🚀

9 Upvotes

Hi again r/macosprogramming 👋

A few weeks ago we shared Wallper here - our side project built in Swift for setting 4K animated video wallpapers on macOS.

Just wanted to share that we’ve now officially launched on Product Hunt:
🔗 https://www.producthunt.com/products/wallper-wallpaper-engine-for-macos

Thanks again to this subreddit - some of the early feedback we got here helped us fix issues and improve performance.

Still very much improving it, and happy to answer any technical questions or share insights.


r/macosprogramming • • Jun 25 '25

A Terminal UI for Apple containers

9 Upvotes

Hi r/macosprogramming! Apple released official support for containers, finally. But it is missing a compatible GUI.

I built a terminal UI to make it easy to manage containers and images. It is written in Go, but I'm exploring the possibility of maybe porting this into a desktop app.

https://github.com/andreybleme/lazycontainer

You can install via brew:

$ brew tap andreybleme/lazycontainer https://github.com/andreybleme/lazycontainer

$ brew install lazycontainer

This was built to myself only for now, but if others are interested, feedback is welcome!


r/macosprogramming • • Mar 28 '25

I made a natural language to Terminal translator that docks under Finder windows

9 Upvotes

r/macosprogramming • • Jan 19 '22

Introducing BackLog – a Freeware Developer Tool for Mac for easier log-retrieval

Thumbnail
blog.eternalstorms.at
9 Upvotes

r/macosprogramming • • Oct 14 '19

Explain me like I am 5 years old: what is the difference between a package, a library and a framework?

9 Upvotes

r/macosprogramming • • 8d ago

Building a live Earth wallpaper: desktop-level NSWindows, a WKWebView renderer and a frame rate that follows the motion

Post image
8 Upvotes

I've been working on a hobby project, a macOS app that puts a live 3D Earth behind the desktop icons (real sun position, city lights at night, satellite clouds). It's open source and I thought some of the implementation details might be interesting here. I'd also really like feedback on a few decisions.

How it's put together:

- One borderless NSWindow per screen at CGWindowLevelForKey(.desktopWindow), with collectionBehavior [.canJoinAllSpaces, .stationary, .ignoresCycle, .fullScreenNone] and ignoresMouseEvents = true. That keeps it under the icons on every Space and lets clicks through to Finder.

- The Earth itself is a three.js (r160) page in a WKWebView. It's loaded through a custom WKURLSchemeHandler (earth://app/...) because ES modules don't load from file:// URLs.

- The subsolar point uses the low-precision formulas from the Astronomical Almanac, which are good to about 0.01°. That's plenty for a wallpaper.

- Frame rate: the renderer works out how many pixels per second the image actually moves (from zoom, pitch and the motion mode) and schedules frames accordingly, down to one frame every 5 seconds. Camera moves still get the full 30 fps. It pauses on NSWindow.didChangeOcclusionStateNotification and NSWorkspace.screensDidSleepNotification.

- Place search uses MKLocalSearchCompleter, Open at Login uses SMAppService.mainApp.

- No Xcode project. build.sh calls swiftc per architecture and lipo's them into a universal binary. GitHub Actions builds the DMG and also launches the real app to take the README screenshots.

Where I'd like opinions:

  1. Is a WKWebView + WebGL renderer a reasonable choice here, or would you go Metal/SceneKit directly? WebGL made the shaders easy to iterate on and also let me reuse the renderer on the website, but I'm curious about the overhead others have seen.

  2. Is there a more reliable signal than occlusionState for "nobody can see the desktop right now"? It works for me, but I'd like to know if there are cases where it lies.

  3. Anything you'd watch out for with desktop-level windows on newer macOS versions?

It's MIT licensed and macOS 13+. I built it with some help from AI, and I'm happy to go into detail on any part.

https://github.com/Hensobo/earth-now

Short demo video: https://youtu.be/Ov-Rup8pm14


r/macosprogramming • • 9d ago

Inkrail: Offline, Minimal Typewriter app built for Deep work

8 Upvotes

Inkrail is a quiet, native writing desk for Mac — built for focused, distraction-free writing with a calm, paper-inspired interface.

Write offline. No accounts. No subscriptions. Just a clean place to think, draft, and create.

Features:
• Native Mac experience
• Offline-first writing workflow
• Minimal, distraction-free interface
• Paper-inspired desk aesthetic
• Built for calm, focused writing sessions
• Open source and privacy-friendly

Inkrail is designed for writers, note-takers, and creatives who want a simpler, more intentional place to work.

GitHub: https://github.com/Aaryanverma/inkrail

Link: https://aaryanverma.github.io/inkrail/

Open source project for people who value thoughtful tools over noisy software.

UPDATE: Inkrail for Windows is also available now!


r/macosprogramming • • Oct 22 '26

I made a free, open source app to check a Mac before buying it used (or just to see how yours is doing)

8 Upvotes

Hi everyone,

I built Aman Check, a free and open source Mac app made for regular people, not for techs or enthusiasts. If you're about to buy a used Mac, or you just want to know what state yours is in, you probably don't know what to look at. The app does the checking for you and explains the results in plain words.

It shows the battery health and cycle count, how many hours the disk has been running, and whether the Mac is locked: Activation Lock, company management (MDM), or an Apple Account still signed in. Then it walks you through quick tests for the screen, keyboard, trackpad, speakers, microphone, camera and ports, one at a time. It won't replace erasing the Mac and checking the setup screen in person, but it tells you exactly what to ask the seller.

If you're the one selling, you can generate a report of the Mac's condition and share it with the buyer.

For a deeper look at the disk itself, there's also Aman Disk, my other app. Think CrystalDiskInfo, but for Mac, and free as well.

Everything is on GitHub, the link is on the site: https://midzai.github.io/aman_check/

The app is free and will stay free. Right now macOS warns you the first time you open it, because removing that warning takes Apple's paid developer program ($99 a year). If Aman Check helps you, a small donation on Ko-fi goes toward that first, so the warning disappears for everyone: https://ko-fi.com/midzai

It's a first release, so if you find a bug or have an idea, tell me here or open an issue on GitHub. Any feedback helps.


r/macosprogramming • • Sep 07 '26

I built Piko, an open-source Mac app for transferring files to and from Android over USB

Post image
8 Upvotes

Hey everyone! I’m building Piko, a native macOS app for transferring files between your Mac, Android phones, and cameras that support MTP.

You can drag and drop files and folders, browse photos with thumbnail previews, and manage multiple connected devices in one window. Everything runs locally, with no internet connection needed.

GitHub + download: https://github.com/morishuz/piko

It requires Apple Silicon and macOS 14 or newer. It’s still early and not signed/notarized yet, so after trying to open it, you may need to go to System Settings → Privacy & Security → Open Anyway.

I’d love feedback, especially on device compatibility. If you try it, let me know which phone or camera you’re using and what worked—or didn’t!

Also please note: Piko is new and hasn’t been thoroughly tested across devices yet, so please back up important files and try it with disposable copies first. Moving or deleting files—including moving them to the Bin—can cause data loss or break apps that depend on them. Avoid system or app-managed folders.


r/macosprogramming • • Jun 11 '26

Has anyone here had their macOS app featured on the Mac App Store?

8 Upvotes

If so:

• How much of a traffic/download boost did you see?
• How long did the effect last?
• Did it translate into meaningful revenue or mostly visibility?
• Do people actively browse the Mac App Store, or do most users discover Mac apps through social media, blogs, YouTube, and search?

I'd love to hear real numbers or experiences if you're comfortable sharing.


r/macosprogramming • • Jun 03 '26

Text box that does "select all" on click anywhere

8 Upvotes

I've been struggling to figure out how to do this. I'm making an image editor and I saw it come up in this blog post, where they criticize Photoshop for not doing this.

https://unsung.aresluna.org/photoshops-challenges-with-focus-pt-2/

Current values should be easy to blow away. But these native text boxes are sure adamant about placing the cursor when you click in the existing text. They will select all when you click in the padding area of the text box, outside the existing text, but I'm trying to find a way to make it do that if you click anywhere.

Pretty sure the only solution here is to reimplement the text input. Which I have pretty much already done for Text layers in Mojave Paint, but how annoying.


r/macosprogramming • • Aug 05 '24

Hello I would like to announce a container-like solution for macOS which doesn't require sip to be disabled.

8 Upvotes

I’m excited to share a project I’ve been working on called osxiec (osx isolated environment creator). While it’s not a full container solution, osxiec provides a way to isolate processes from the main system on macOS.

Here are some key features:

  • Process isolation using groups and macOS volumes

  • Network isolation

  • Soft and hard memory limits

  • CPU priority management

  • Sandbox isolation

Unlike existing solutions like "darwin containers," osxiec doesn’t require System Integrity Protection (SIP) to be disabled. It's designed to be an easy-to-use tool for testing code, isolating applications, and integrating with your development workflows on macOS.

I’d love to get feedback from the community. Any suggestions or concerns are welcome!

https://github.com/Okerew/osxiec


r/macosprogramming • • Mar 20 '23

ContributorUI: A UI library for macOS and iOS applications to showcase all contributors of public or private repositories

Thumbnail
github.com
8 Upvotes

r/macosprogramming • • Jun 16 '22

Attempted to port hobby pixel engine to Metal on MacOS- Did Not go well

8 Upvotes

It’s rendering and plotting the pixels but for some reason the application just randomly slows to like 5 fps? My bare app would do this too

It’ll be like 2000+ fps (it’s literally just a single quad with a single texture) then drop down to sub 100 and even like 5 fps

I’m using GLFW as the windowing system and it is just calling Metal calls from the main loop. Is this grossly inappropriate with metal? Should I be using a view delegate? Does that really explain the 2000 fps loss?


r/macosprogramming • • Jan 25 '22

Have a look at the framework I made that allows you to insert a customisable WYSIWYG editor straight into your macOS app! Feedback more than welcome

Thumbnail
github.com
8 Upvotes