Any of you know sample code for making an NSTextView do custom drawing/measuring for an app-defined text style? I.e. I have a range of text “popup names: a, b, c” that I’ve styled with “ULIPopupStyle” and I could tell it “this is 200pt wide and draw a popup menu control there”.

Watching this bit from @jamesdempsey's talk on WebObjects (youtu.be/RDHo7Z6Xc4I?t=1290) and suddenly wondering what WebObjects used to render its web page?

This was before Safari and WebKit, after all ... and can't have been OmniWeb because it was from Apple.

Was this HTMLRendering.framework as used in Help Viewer? I always thought that was originally from Carbon/OS9 ?

Wasn’t aware there was an online version of the visual programming environment for the Scratch programming language available: scratch.mit.edu/projects/edito

BTW — not sure if I‘ve made these two recommendations yet:

If you like point and click adventures, play Trüberbrook.

If you like Marvel movies or 80ies scifi, watch Captain Marvel.

‘nuff said.

RT @vladsavov@twitter.com

For a long time I've wondered what I find so alluring and strangely human about Japanese urban scenes, and then someone tweeted it: Japan doesn't have on-street parking. twitter.com/japanfolder/status

🐦🔗: twitter.com/vladsavov/status/1

good morning. props to Java developers for having such a good sense of humour about their, quite frankly, horrifying language

Just came to the sudden realization that the “look and feel”of old HyperCard is basically “System 6, but double-buffered”.

And now arriving: Sardukar
We gonna see just how hard you are
When I will send you all torn apart
Piece by piece back to the emperor

I’m the duke Paul Atreides
My Fremen’n me can sashay with ease
And now you Harkonnens should bend your knees
Cos else my Kris knife will bring you peace.

Is there a way to get JSONEncoder in Swift to format the output JSON more like normal JSON? It puts spaces to the left of “:” characters, and shows empty arrays with an empty line between the square brackets.

Or is there a drop-in replacement that gives more formatting control?

And yes, I’m aware that range-loops and for(in) and whatever else should obviate the need for loop counters in Swift in most cases, but walking certain data structures still requires it, and there the “shouldn’t this be a ‘let’?” warning helps.

Swift’s insistence on reminding me to change a var into a let has reminded me so often that I forgot to update a loop counter, it’s not even funny anymore.

Of course The Weekly Review podcast has a theme song by James Dempsey and Jean MacDonald. <3 I should have expected that, they‘re hosting the show!

Does the current Safari have a bug where all requests not explicitly marked as HTTPS end up as HTTP again? Seeing a lot of web sites recently accessed as insecure when I type in their domain names or follow web search results.

TIL that Mork was apparently a Happy days spinoff ? :-o

par for the course:

Normal, typical, or to be expected (especially when something is a source of annoyance or frustration).

An allusion to golf, in which “par” is the number of strokes that it should take a player to get the ball into a particular hole on a golf course.

Show more
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!

We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot Café list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators.

Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!