Join Nostr
2024-10-30 00:59:14 UTC

Guy English on Nostr: Some macOS AppKit software I wrote back in 2008-ish had a pattern where I’d do ...

Some macOS AppKit software I wrote back in 2008-ish had a pattern where I’d do this:

#define kContentLayoutRectDidChangeContext "kContentLayoutRectDidChangeContext"

Comparing string literals is now a warning.

It also uses “@selector()” as a unique key for associated objects. It wasn’t a true selector. But it’d produce a stable key.

And along with a few deprecated API warnings that’s about it? Not bad for software that predates the iPad and started a year or so after iPhone shipped.