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.
Published at
2024-10-30 00:59:14 UTCEvent JSON
{
"id": "34ed03fdb6ad108b13e108ac8bb070d05ce9c9189517ea9e7c62fdf6e7bcbdca",
"pubkey": "47ff974c1110c5e15c35f1dfde511c824f42313ab19f8b50ba2a2459b640658d",
"created_at": 1730249954,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@Gte/113393661032692780",
"web"
],
[
"t",
"define"
],
[
"proxy",
"https://mastodon.social/users/Gte/statuses/113393661032692780",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/Gte/statuses/113393661032692780",
"pink.momostr"
],
[
"-"
]
],
"content": "Some macOS AppKit software I wrote back in 2008-ish had a pattern where I’d do this:\n\n#define kContentLayoutRectDidChangeContext \"kContentLayoutRectDidChangeContext\"\n\nComparing string literals is now a warning.\n\nIt also uses “@selector()” as a unique key for associated objects. It wasn’t a true selector. But it’d produce a stable key.\n\nAnd 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.",
"sig": "65c2c6490cd523cc9eace418e84cbb2a98db674436d6fd7d10b970c12e0358838c7e471e09af4f9fe772f2f8e21252252419ded2ecec7995ddfa93cb604656e5"
}