Christian Tietze on Nostr: npub1sy8vt…pw2zc Thanks for sharing! I played with the NSTextView example a bit. ...
npub1sy8vt0hed8vr58ueqjlvmpzylv9he2fvv04luf4z5vyzsuut5zvqfpw2zc (npub1sy8…w2zc) Thanks for sharing! I played with the NSTextView example a bit.
The default behavior is terrible! 😆
I do see how scheduling updates fixes on the main queue fixes the UI update problem. We're using this in similar situations to fire off updates. But my love/hate relationship and intimacy with text views terrifies me of the fact that
1) one user interaction can result in multiple delegate callbacks, and so
2) we space out performing actual updates across 2+ run loop runs.
Published at
2023-09-13 09:34:27Event JSON
{
"id": "88d055a670e85785d52ca3160f5f1e64e57915eb03458ad260e286b84b9b20a1",
"pubkey": "16ae1656580876352c0d645029f645f15e302c29b07ad55252aa7115ee649193",
"created_at": 1694597667,
"kind": 1,
"tags": [
[
"p",
"810ec5bef969d83a1f9904becd8444fb0b7ca92c63ebfe26a2a30828738ba098",
"wss://relay.mostr.pub"
],
[
"p",
"36fb9c68c8ef310b82bc748f1a33086f5a42fcb02e6a0e59867fd3efb3298121",
"wss://relay.mostr.pub"
],
[
"e",
"1446a034396ab3ac71ec3c6ffbaa1c4022a408f58fc287f62c1354e2f87d29ca",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.social/users/ctietze/statuses/111057152745409716",
"activitypub"
]
],
"content": "nostr:npub1sy8vt0hed8vr58ueqjlvmpzylv9he2fvv04luf4z5vyzsuut5zvqfpw2zc Thanks for sharing! I played with the NSTextView example a bit. \n\nThe default behavior is terrible! 😆\n\nI do see how scheduling updates fixes on the main queue fixes the UI update problem. We're using this in similar situations to fire off updates. But my love/hate relationship and intimacy with text views terrifies me of the fact that \n1) one user interaction can result in multiple delegate callbacks, and so\n2) we space out performing actual updates across 2+ run loop runs.",
"sig": "e7cab0638f5d9e6b4b319da413404d628b5aa8c96394d11e2ef071862291ee44c524edb5e3d4dd2965016e75659cf4655210105510e2e5708eb63e5a7a85a554"
}