home.social

#nsview — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nsview, aggregated by home.social.

  1. Update: Added a Readme marking the code as public domain, and describing how it works while I still remember it. #appkit #objectiveC #macOS #NSView #programming #transition

  2. OK, I don't know what I did differently, but I now have sample code that performs a CATransition or a CIFilter-based transition when adding/removing NSViews from their parent.

    Not quite sure why it didn't work before.

    github.com/uliwitness/Transiti

    (Sorry, it's Objective-C because I needed to integrate with C++ in the *real* app this code went into, but shouldn't be too hard to Swiftify)

    #appkit #objectiveC #macOS #NSView #programming #transition

  3. Hmmm… all I can found about rendering views out-of-process is sample code that no longer works, and requests that Apple add documentation for CARemoteLayerServer & co.

    Does anyone have sample code that works?

    #macos #iosurface #remote #nsview

  4. mac #NSView #a11y is flummoxing me this afternoon... i want to set a button to conditionally not be an accessibility element (if it has no action and does nothing, the actual text field it's next to is already labelled and the looks of the icon are pretty irrelevant, so lets just not go there w/ #VoiceOver). implementing isAccessibilityElement() to return false in the button subclass results in a button that is STILL SELECTABLE by VO, and I don't get why.

    the View inspector on the button:

  5. Cool tip via @lvt:

    xcode.tips/find-problematic-co

    “If you see a problematic constraint, copy its address from the console and use it to filter in the view debugger. The view debugger will show you the exact constraint in the user interface.”

    #swift #xcode #programming #uiview #nsview #debugger #debugging