NSTextList support in macOS 14

This WWDC video (https://developer.apple.com/videos/play/wwdc2022/10090/) shows using NSTextList in TextKit 2 on both iOS and macOS to create bulleted lists in UITextView and NSTextView, respectively. The sample code still works on iOS, but doesn't work on macOS

Here's a screenshot from the wwdc talk:

Here's the same sample code running on macOS 14.3:

Anyone know how to make NSTextList work on macOS 14? Is this a regression, did something change with the api, or has the functionality been removed?

I'm encountering this issue as well. Seems to be a regression, as it was working on macOS 13 before I upgraded my os.

A couple other observations on Mac:

  1. When copying the list text from the NSTextView to the stock Notes app (and most other apps that support rich text), the list shows up correctly, including the markers.

  2. If I add nested bullets, it kind of triggers some of the markers to show up.

  1. When inspecting the underlying attributed string, the attributed string properties for the list items that display correctly are exactly the same as the properties for the list items that do not display correctly. The only difference is that the list item markers are not automatically prepended to the list item string on Mac (with the exception of the aforementioned nesting "hack").
NSTextList support in macOS 14
 
 
Q