Archive for April 17, 2023

Monday, April 17, 2023

Swift’s Versioned canImport()

Marco Eidinger:

SwiftUI.Font.width(_:) was actually introduced in iOS 16.1 and not in iOS 16.0 as the documentation suggests.


While researching a solution, I stumbled on an interesting fact that #if canImport allows specifying a version that gets checked during compile-time. The version gets compared against the -user-module-version flag in the .swiftmodule file using.


Suppose the framework and the APIs in question are cross-platform. In that case, you can (theoretically) write a single query to determine the build time availability of the API across multiple platforms because module versions tend to be aligned across the aligned platform-specific SDKs.

It allows you to gracefully handle things like APIs introduced midway through the betas even though the overall system/SDK version number hasn’t changed.

But you have to figure out the user-module-version of the framework.

Katie Cotton, RIP

The Express Times:

She arrived in California from New Jersey in 1988 ready to make her mark on the world. And so she did.

Katie is recognized as one of the most remarkable women in Public Relations and Marketing in Technology. In her role as Vice President of Worldwide Corporate Communications for Apple Inc., she worked most of her 18-year career directly for Steve Jobs. She was a strong and unwavering proponent for the company, helping to elevate its products and brand.

John Gruber:

I always appreciated Cotton’s forthrightness, and part of that is Apple’s institutional default to “no comment” when asked about anything other than what Apple wants to talk about. Those “no comments” seem to downright offend some reporters, but to me, they’re a sign of respect. Better not to say anything at all, and waste no one’s time, than to offer up a lengthy but meaningless pile of bullshit, which in my experience is how most PR teams operate.

Walt Mossberg:

Katie was a formidable figure for 18 years at Apple and I worked closely with her for most of that time. She was a key partner to Steve Jobs, who trusted her judgement.


Katie brilliantly led the media strategy for the historic run of big products during Jobs’s second tenure running Apple.


She had a big impact on Apple and the tech media and built a great team.

Daniel Jalkut:

Kinda feels like Katie Cotton passing should be front-page Apple memorial material.

See also: Mark Gurman.

Update (2023-05-08): Richard Sandomir:

Ms. Cotton, who built a culture of mystery by saying relatively little, if anything, to reporters, joined Apple in 1996 and began working with Mr. Jobs the next year, soon after he returned to the company after 12 years away. Apple was in poor financial shape at the time, but Ms. Cotton worked with him to engineer a striking turnaround.

Together they crafted a tightly controlled public relations strategy as the company recovered from steep losses and turned out one successful product after another, including the iMac desktop computer and innovative digital devices like the iPod, the iPhone and the iPad.


“She was accessible, she was a point of contact,” said John Markoff, a former technology reporter for The New York Times, “but sometimes it was hand-to-hand combat if they wanted to convey a story to the world and it wasn’t the story I wanted to tell.”


Richard Stengel, a former managing editor of Time magazine, said in an email that Mr. Jobs “would call me five or six times in a day to tell me I should do a story or not,” and that Ms. Cotton would “frequently call right after and gently apologize or pull back something he had said.”

Make Something Wonderful

Steve Jobs Archive (MacRumors, Hacker News):

A curated collection of Steve’s speeches, interviews and correspondence, Make Something Wonderful offers an unparalleled window into how one of the world’s most creative entrepreneurs approached his life and work. In these pages, Steve shares his perspective on his childhood, on launching and being pushed out of Apple, on his time with Pixar and NeXT, and on his ultimate return to the company that started it all.

Featuring an introduction by Laurene Powell Jobs and edited by Leslie Berlin, this beautiful handbook is designed to inspire readers to make their own “wonderful somethings” that move the world forward.

It’s even available as an EPUB file.

Stephen Hackett:

The holy grail, it would seem, is the physical edition of the book, which has been given to employees at both Apple and Disney.

As of this writing, there are roughly two dozen of them for sale on eBay, with prices as high as $25,000. Many of the listings have active bidders, most of them in the $1,000 range or so.

John Gruber:

Also, for everyone enjoying the book on the website, due to a regression in the latest version of Safari/WebKit, it works best in Chromium browser. (Example: the full-screen pages lock into place as you swipe.)

Sebastiaan de With:

It’s hard to capture the delight of a real book, but this website does a fantastic job coming close. Lots delightful, thoughtful little details.

Jason Snell:

I have to admit that the existence of the Steve Jobs Archive generates mixed feelings in me. It’s dedicated to curating the work of an important historical figure, but also feels a bit like it’s designed to be a hagiographic tool for influencing how Jobs is remembered by history. (Given how history tends to flatten people’s life stories and accomplishments into caricature or outright falsehood, I entirely understand the impulse.)


The highlight of the book, however, is his Stanford commencement address from 2005. It’s a remarkable speech to begin with, one that will likely be quoted for years to come. But the book also provides Jobs’s notes to himself as he began planning what to say in the speech! (He just kept sending himself emails whenever he thought of something, and because of that quirk, we get to peek inside his thought process.)


Update (2023-04-21): Adam Chandler:

[You] can also show “completed” listings and those are averaging $350-$500

macOS 12.6.5 and macOS 11.7.6

Apple (full installer, MacRumors):

This document describes the security content of macOS Monterey 12.6.5.

Apple (full installer):

This document describes the security content of macOS Big Sur 11.7.6.