Damus
Frederik Handberg profile picture
Frederik Handberg
@frederikhandberg

23 πŸ‡©πŸ‡° I'm studying for a degree in Software Engineering while building fun projects and experimenting with drone technology.

I'm also learning to sew garments as a hobby πŸͺ‘ Sometimes I work as a freelance photographer for different news outlets πŸ“·

I mostly share progress updates as I'm working on my software and drone projects, and as I learn to sew.

Basically, I just write about my hobbies...

Relays (4)
  • wss://relay.damus.io – read & write
  • wss://relay.nostr.band – read & write
  • wss://relay.snort.social – read & write
  • wss://nostr.oxtr.dev – read & write

Recent Notes

Frederik Handberg · 1w
Probably also an iOS app at some point
Logen · 1w
I N C R E D I B L E
Frederik Handberg profile picture
Now the image popup is also working!



There was a bug where the cursor would be overridden to `NSCursor.iBeam` because there is an `NSTextView` behind the popup. Now this bug has been fixed, so that the arrow cursor is showing when popup is open. #dev #Swift #SwiftUI #AppKit #Markdown
1πŸ‘€1
Frederik Handberg · 1w
In this video, you can see what happened before the bug was fixed: nevent1qgsfe8upa4u47r67lf2cjv5zg6rasn78u6jvlfkmt4knk58ukll6assqypzsk5yx4tsgutllm8t2ry8kzenwgyrx6nemmv99pynjq8hye80rkqf6gg5
Frederik Handberg profile picture
Bug is now fixed πŸš€



The cursor is now changing to the correct `NSCursor` style when hovering image and video attachments in the #Markdown editor.

In the video, you will notice how when I click an image attachment which opens it in a popup, the cursor style actually changes back to the `iBeam` yet again... This is the next #bug to fix πŸ˜„ I want it to just show the normal arrow cursor when image popup is open.

4❀️1
Logen · 1w
Is this an obsidian replacement?
Frederik Handberg profile picture
Working on fixing a classic #AppKit and #SwiftUI bug where the `NSTextView` will aggressively override the `NSCursor` to `iBeam` (which is default for textviews) even when you specify that a different cursor style should be used.



In this case, I am trying to get the `NSCursor.pointingHand` cursor to show when hovering an image attachment. For video attachments, the normal arrow cursor should show. #dev
1
Frederik Handberg · 1w
In the video, you can actually see the cursor changing to the correct cursor style for a brief moment when I hover into an image or video attachment, but then the cursor immediately changes back to the default `iBeam`.
Logen · 1w
I cloned it from his repo and ran it