5 ms·
Show HN: Kasimba – Simple macOS app that converts Windows paths to SMB addresses
- stuaxo 1y agoThese things are useful. For windows users you can install a little script as a URL handler for smb addresses to go the other way.
- 90s_dev 1y ago> Useful for Mac users who need to access Windows network shares. Looks great. Related story. In late 2010 a client asked me to write effectively the same thing for him as a Mac app, using that one protocol I can't remember the name of, but which had promise and never quite caught on. All I can remember about it is that I implemented JavaScript's `for await (...)` in 2010-era Objective-C, and I felt like a genius because I had never even heard of such a concept before, and came up with it on my own just to solve a problem in that project. That function worked amazingly and only took like 100 loc or something. I wonder if he still has that source code around somewhere.
- 90s_dev 1y agoWebDAV! I just remembered it was webdav.
- 90s_dev 1y ago> // Custom TextField wrapper that supports keyboard shortcuts > struct FocusableTextField: NSViewRepresentable { Did things change? We used to use "responder chains" to do this. In fact that concept was created to avoid having to subclass for keyboard shortcuts.
- bobnarizes 1y agoSwiftUI uses a different event handling model than AppKit's responder chain. This NSViewRepresentable approach is afaik the recommended way to access AppKit's event handling capabilities from SwiftUI. https://developer.apple.com/documentation/swiftui/nsviewrepresentable https://developer.apple.com/documentation/swiftui/nsviewrepr...