Emptying Caches When macOS Reports Memory Pressure
NSCache evicts entries on its own when memory gets tight, but a plain Swift dictionary keeps everything until you clear it. Read more of Emptying Caches When macOS Reports Memory Pressure →
My name is Jake Marsh. Inventor 💡 Founder 👨🏻💻 Creator 👨🎤 Writer ✍🏻 Lifeform 👽
Xcode tips, command line tricks, debugging and the apps developers use every day. 25 posts.
NSCache evicts entries on its own when memory gets tight, but a plain Swift dictionary keeps everything until you clear it. Read more of Emptying Caches When macOS Reports Memory Pressure →
Postage, my Mac email client, keeps two SQLite databases. emails.db is a cache of mail that can always be downloaded again, and rules.db holds data that exists nowhere else. Read more of SQLite's synchronous = NORMAL, And When Not To Use It →
Every Mac app I sell from my own site goes out the same way. It’s signed with Developer ID, notarized, stapled, put in a DMG, and then the DMG gets signed, notarized and stapled too. The steps are well known. The order is where people get bitten, along with which file each step applies to. Read more of Notarizing And Stapling A Mac App For Direct Download →
Battery health on a Mac lives in the AppleSmartBattery entry in the I/O Registry. System Information shows numbers from it, and so does the battery meter in Multimeter, which is where I ran into this. Read more of Reading Mac Battery Health From IOKit →
Most of my Mac apps live in the menu bar. Shake It On, Multimeter and Refrain all set LSUIElement to YES in their Info.plist, so there’s no Dock icon and no app menu, only a status item. Read more of Menu Bar App Windows That Open Behind Everything →
Multimeter can show your Mac’s fan speed. There’s no public API for that, so it asks the System Management Controller through IOKit: open the AppleSMC service, then call IOConnectCallStructMethod with a struct going in and the same kind of struct coming back. Read more of Swift Tuples Drop Their Tail Padding →
Multimeter puts one status item in the menu bar for each meter you add. In its Settings window you can drag meters into whatever order you like, and the menu bar is supposed to follow. That turned out to need a small trick, because AppKit gives you no way to move a status item once it exists. Read more of Ordering Menu Bar Status Items When AppKit Won't Let You →
My server sends push notifications to my phone when something needs a look: memory running low, a process that stopped answering on its port, a nightly job that failed. For a long time those went through ntfy, which is about the nicest way there is to get a message from a shell script onto a phone. Read more of Self-Hosted ntfy And The Shared IPv6 Quota Behind My 429s →
Every Mac app I make now ships two ways from the same code. There’s a direct build that I sell on the app’s own website, signed with Developer ID, notarized, packed in a DMG and kept up to date with Sparkle. There’s also a Mac App Store build. Read more of Selling A Mac App Directly And On The Mac App Store →
Last night I finished moving ShopSavvy’s main Postgres database off Google’s AlloyDB and onto a PostgreSQL server we run ourselves on DigitalOcean, on the same machine as the app. The database was a little under 1 TB. Read more of Moving A 1 TB Postgres Database With Five Minutes Of Downtime →
I’ve been working on a Mac app called Stovetop. The tagline is “Let Claude cook.” It’s for anyone who bounces between a lot of Claude Code sessions. Read more of Stovetop, A Home For My Claude Code Sessions →
Chris Lattner on the Apple Dev Forums: We care a lot about the pain that is affecting you now, and Xcode 6.1.1 available now as a GM Seed should address the worst of the SourceKit, DerivedData and module cache issues (among other bugs). Read more of Apple Releases Xcode 6.1.1 GM →
Finally. Read more of Apple Buys Testflight →
This makes so much sense. The idea isn’t neccesarily brand-new, (here’s an article from back in 2009), but seeing it illustrated as clearly and beautifully as Evan has done here is eye opening. Read more of Coding in Color →
The team at @Square have released another amazing tool for native iOS development. PonyDebugger is a remote debugging toolset. Read more of Change Your Debugging Life With PonyDebugger →
Oh man, I have waited a long time for a tool like this to come around. I’ve even attempted to build one myself a couple times. The process of localizing Cocoa applications has always been a bit of a chore. Read more of Localize Your Apps With Ease Using Greenwich →
Building iOS and Mac projects from the command-line could be a lot easier to work with. Hopefully this post will give you a couple ways to make that happen. I wanna talk about two different little tools that help ease the process of scripting or working with Xcode projects from the command line. Read more of Building Xcode Projects from the Command Line →
How many times has this happened to you? I received the new mobileprovision file. Great. No. What? You still haven’t added my UDID in it. I have. No you have not. Yes I have. No you haven’t. Yes. No! Why don’t you just… … Look, I’m sure. Can you generate it again? Ok, I will. Wait… ok, it’s done. Read more of QuickLook Plugin for Mobile Provision Files →
Zucchini is an awesome cucumber-like visual testing framework for iOS. It works in a pretty awesome way by compiling CoffeeScript down to UIAutomation-compliant Javascript, and then running the test with Instruments.app’s command-line tool. Read more of Zucchini: iOS Testing Written in Ruby & CoffeeScript →
A brilliant article by my buddy Ted Howard on the trials and tribulations of properly naming pieces of your user interface. We needed a name for the button that brought up the stack editor. Read more of Connect, Discover, Edit, Inspect, Customize →
Hiedi Utley has completely brought the awesome with a way to use desktop Safari’s WebKit inspector to debug iOS UIWebView objects: Wow! What a day! Read more of Remote Debugging UIWebView →
A fantastic little OS X app here for configuring CSS gradients. The interface of Gradient is really fantastic and pretty close to perfect of this simple task. This image was hosted on CloudApp, which shut down. It’s gone. You simply choose your color, and generate the CSS. Read more of Gradient.app →
Fabien Sanglard brings us an extremely comprehensive guide to getting the recently open-sourced Doom 3 source code up and running on OS X using Xcode 4. Love it: This image was hosted on CloudApp, which shut down. It’s gone. Read more of Compiling Doom 3 in Xcode 4 →
Yes. This is so helpful it’s not even funny. This little baby comes to us thanks to Wade Cosgrove. A custom color picker designed specifically for developers. Makes getting colors out of Photoshop/Acorn mock-ups quick and easy. Currently supports NSColor, UIColor, CGColorRef, CSS and HTML styles. Read more of Developer Color Picker →
Here’s a neat little snippet for Xcode 4 that will cause all of your //TODO: and //FIXME: comments in your code to appear as compiler warnings when you build. Read more of Show TODO's And FIXME's As Warnings In Xcode →