veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

268
active users

#AppKit

3 posts3 participants0 posts today

Okay, someone pointed out to me the #macOSTahoe controls window I posted yesterday was Beta 1.

I went ahead and recreated it myself with additional controls using Beta 8.

I will point out a few things I DO LOVE...

1. The text field actually looks nicer. Sequoia and older had sharp corners & the bottom edge was darker.

2. The Search field FINALLY has rounded ends again! Like in Mac OS X Tiger! Little visual cues like this go a long way!

Continued thread

Added

- NSTokenField shows offset overlay text when unfocused and hovered over (FB19883848)

On macOS 26 beta 6, using an NSTokenField where the text exceeds the control size, hovering over the control while it’s unfocused produces an overlay text effect that looks wrong.

Continued thread

There are so many rough edges in Cocoa, but when you know the secret way to do something, it is very nice.

For example, if you bind the table columns to a key path into an array controller, you can get away with not implementing NSTableViewDelegate and providing cell views yourself.... EXCEPT that #AppKit provides cell views in which the text field is vertically misaligned. So this basic functionality, which probably worked correctly a long time ago, cannot be used and you must implement your own views.

There's a lot of stuff like that... Broken windows (no pun intended). It makes me kind of sad to see it neglected in that way.

So today I spent the day learning how to create a Mail.app-style layout in #AppKit programmatically, using Cocoa Bindings, NSTreeController, NSArrayController, etc.

My sample code is here: git.sr.ht/~jonsterling/cocoa-b

This seems to work correctly on macOS Sequoia, with the "correct" interaction between the source list scrollview and the window toolbar area. I have to wait until I get home to test this on Tahoe, where I had before been having trouble with the sidebar not receiving the correct "edge effect".

Continued thread

My lightning talk at @COSCUP not only covered the wide gamut OKLCH color picker I made last week:

g0v.social/@RSChiang/114992011

but also introduced the sacrilegious Windows Aero style window, recreated on macOS. (Who would think of that? 🥴)

Source code available on GitHub:

github.com/rschiang/kiunrhong
github.com/rschiang/waterweed
github.com/rschiang/hydrobolic

Don’t forget to like, star and subscribe! 🐙

今天在 COSCUP 2025 Lightning Talk 的簡報,羅列了最近開坑的三個 side project!(・ω・)✨

「為專案取名永遠是最困難的」
“The Eternal Struggle of Naming a Project”

speakerdeck.com/rschiang/the-e

所有程式碼都以開源授權放在 GitHub!
#COSCUP #COSCUP2025 #Swift #AppKit

Speaker Deck為專案取名永遠是最困難的 / The Eternal Struggle of Naming a ProjectBy Poren Chiang

Okay, I think I figured it out.

I can add a Visual Effect View that sits at the top of the window outside the safe area insets to give a nice blur to the map's content as to not interfere with the toolbar's titles and button titles (if shown).

But the visual effect has a gradient mask to avoid a hard-stop at the bottom.

It's so visually busy as now content flows behind the sidebar and the inspector and the toolbar should be translucent.

Holy shit, I think it was the #AppKit team who fixed this but they fixed it for #macOSTahoe!

Basically, SwiftUI wouldn't persist the state of UI like scroll position when switching between tabs etc etc... and still doesn't. So I made a SwiftUI hosting view for NSTabViewController complete with NSToolbar.

Inside each TabView, I use SwiftUI again where each is a sidebar with a detailed view on the right. In macOS Sequoia, this would crash when switching tabs!

I think I might be unblocked now!

Despite all these changes I am making for #macOSTahoe, I'm still able to easily support back to macOS 13.0 Ventura. It's sorta fun how different it all looks now... still not liking Tahoe though. Too busy.

I don't care that it looks "cool" -- "cool" doesn't help with usability. It should be an organic side-effect, not the driving factor.

macOS Tahoe & macOS Sequoia