Copy
View this email in your browser

Hi <<First Name>>,

Here are excerpts from the latest posts from my blog since your last delivery. Enjoy!

Auto-Growing NSTextField

published on Feb 16, 2020 01:43 pm
I ran into a situation with a window that is movable by its background and a text field inside it. The text field draws neither border nor background, so to the user, it looks like an input field directly on the window’s background. Much like the Spotlight search box. Even when a window’s isMovableByWindowBackground is enabled, a NSTextField captures click and drag events, and it changes the pointer to a text insertion variant (NSCursor.iBeam). All that is weird when you don’t know there’s a text field at that point. And you cannot know how large the text field is if nothing is drawn there. When the background is gone, this feels pretty weird.
Read in browser »



 

Recent Articles:

Boilerplate to Add AppleScript to Your macOS App in 2020
NSProgress with KVO-based Finish Callbacks
WhatsNewKit v1.2.0 Supports Multiple Update Notices at Once
Newsletter Form Fixed
Thread Safe Property and Resource Access with the Transaction Wrapper

Have a great rest of your day!
Copyright © 2020 Christian Tietze, All rights reserved.


unsubscribe from this list    update subscription preferences 

Email Marketing Powered by Mailchimp