Stephan Schlecht
@sw7com
Software developer, mainly iOS and macOS.
Whoa, a few days ago I read that the damage would be at $40 million, and now it's already $70 millions? Let's see what the situation looks like next week...
Lol. With "marketing" emails like these, you can be absolutely absolutely certain reach devs who definitely won't unsubscribe, will definitely read the article, and will 100% buy your products. What? 🤷
I forgot temporary attributes exist and was trying to clear temporary attributes using setAttributes. Time to call it a day.
Even if I restrict opening the same folder twice later, it's a good way to test the sync, like syncing changes, undo manager binding to different NSTextViews, updating word-wrap in one doc updating all views, etc.
Couldn't resist. Undo for drafts is now persisted across app restarts. Nice side effect: proves undo/redo doesn't rely on concrete object instances.
I was just playing around a bit; needed o run a quick test to see if a certain menu item is added by system. Much better than `swift -e ‘...’ 2>&1` on the command line for sure. (do not know where the title "Silken Couragenus" comes from, I don't even know what a "Couragenus" is.)
And I thought one could disable this automatic submenu entry with setting isAutomaticTextReplacementEnabled to false. Hmm.
After not working on it for two weeks, I'm back now and thinking about what I'd like to display under “Reveal in Sidebar” for unsaved drafts. Maybe a “Drafts” section?. Hmm.
That feeling when you're drilling down in Instruments to find the bottleneck, that strange mix of satisfaction at having found it and embarrassment because you really should have known about it in the first place.
Just saw the use of `data[...]` in some code, where `data` is of type `Data`. That got me thinking: if the SubSequence type of a collection matches the type of the collection itself, using the unbounded range operator (`...`) makes no difference. github.com/swiftlang/sw...
Installed Golden Gate beta and Xcode beta in UTM and, of course, immediately compiled my GitChronicles app: at first glance, everything seemed to work right away, at least so far.
I got it working on Tahoe in UTM (App Store version) by first installing Tahoe IPSW as a guest and then installing Golden Gate Beta with InstallAssistant.pkg as an update within the guest. I don't know yet how well it works; I haven't had much time to try it out.
So you can restore a bricked Intel MacBook Pro using DFU (Device Firmware Update) from a Silicon MacBook. That's pretty cool. All you need is a USB-C-to-USB-C cable. Hopefully the rest will work out too.
Lol. Too bad it's a Snow Leopard bug fix update and not a Tiger one; otherwise, I could just install it.
Very nice. We had a visitor. A Green Woodpecker (Grünspecht) perched in the cherry tree in the garden.
I'm thinking about using a minimalist interface for the title bar. Aside from the fact that the opacity of the line number gutter isn't reduced (can be fixed for sure), I'm not yet sure if that's really what I want. I need to think about it some more tonight.
In TextKit 2, if you only change the rendering attributes for ranges, the update either doesn’t happen at all or only occurs after a while, once you’ve scrolled a bit. One workaround I’ve found is to call setNeedsDisplay for the (sub)layers of the subviews, but there must be a better way, no?
I think I used “ed” for the very first time ever today, and the session looked pretty much like it did in the 1991 article “Ed, man! !man ed.” Now I need to think about what I could use ed for. What do you even do with it? www.gnu.org/fun/jokes/ed...
CMD+E is my absolute favorite shortcut. It's annoying that non-native apps often lack it on macOS. By the way, that shortcut was already present in OpenStep 4.2.
I actually saw a hoopoe (Wiedehopf) during a computer break today, the first time ever. So cool. There are only a few thousand of them left in Germany.
If you don't want immediate argument binding in Go, defer a closure; then the closure can observe the variable's later value, so this can also produce 2, like Swift.