Frederik Handberg
banner
frederikhandberg.com
Frederik Handberg
@frederikhandberg.com
🇩🇰 23. Studying for a degree in Software Engineering, while working as a Freelance News Photographer. I'm also learning to sew garments...
I finished drafting my t-shirt pattern in CLO3D and got it printed.

Now I need to trace it onto real pattern paper.
December 12, 2025 at 12:17 AM
For the past month or two, I've been working on some pretty complex logic to support caret navigation and text selections across multiple sequential `NSTextView`s in #AppKit.

I need this functionality for my block-based notes app, where each block lives inside its own text view. #dev
December 8, 2025 at 8:55 PM
This article has been really helpful for me to learn how `NSTextView` works:

danielsaidi.com/blog/2022/06...

If you're new to #AppKit and need to build something that requires using text views, I'd recommend giving it a read.
Building a rich text editor for UIKit, AppKit and SwiftUI
In this article, we’ll look at how to extend the rich text support in UIKit, AppKit & SwiftUI by extending native types, adding new t...
danielsaidi.com
November 22, 2025 at 9:04 PM
I love that #programming is all about problem solving. That’s what makes it so fun. At the same time, it can also be a disadvantage. Sometimes, I’ll run into a bug and spend days trying to solve it. This can be super frustrating 😫 But then it finally works, and the adrenaline kick feels amazing 🚀
November 22, 2025 at 8:47 PM
My previous approach for the editing experience in my notes app was using multiple independent `NSTextView`'s.
This caused a problem where I was unable to perform text selection across multiple blocks, since the blocks were in separate `NSTextView`'s.
A massive challenge for a #programmer like myself without years of experience is that I don’t really know how things are done. #dev
November 22, 2025 at 8:46 PM
A massive challenge for a #programmer like myself without years of experience is that I don’t really know how things are done. #dev
November 20, 2025 at 4:20 PM
I FINALLY have `NSTextAttachmentViewProvider` working in my native #macOS notes app! 🎉
This means I can now display interactive #SwiftUI views inside an `NSTextView`. Notice how I’m embedding an image directly into the textview, which the user can click to show the image in a popup. #dev
November 15, 2025 at 4:42 PM
Apparently, `NSTextAttachment` is very limited in what it can do. Simple things like opacity and scale hover effects aren't possible by default. That's a bummer... 😔
#dev #Swift #SwiftUI #AppKit
I finally figured out a solution to fix the many issues I had with my approach for the editor 😅

Basically, I was using an independent and separate `NSTextView` inside of each block. For example, if I had two text blocks, it would be two separate `NSTextViews`.

#dev #Swift #AppKit #SwiftUI
November 15, 2025 at 4:39 PM
I finally figured out a solution to fix the many issues I had with my approach for the editor 😅

Basically, I was using an independent and separate `NSTextView` inside of each block. For example, if I had two text blocks, it would be two separate `NSTextViews`.

#dev #Swift #AppKit #SwiftUI
November 3, 2025 at 10:02 PM
I added a new image popup to my #macOS notes app 🚀

Simply click on an image, and it will open the image in a popup with a blurry and slightly dark background. I think it looks beautiful 🤩
Also added a subtle fade-out effect to the note content right below the tabs at the top.
October 31, 2025 at 5:40 PM
Funny how in autumn I get way more productive. I just code all the time 😂 And besides coding, I walk the dog 🐕‍🦺

The weather outside is cold and it’s raining 🌧️ Not very fun to be outside this time of the year…
October 29, 2025 at 9:35 PM
Importing images and videos is now working in my notes app 🚀
But it's not quite perfect yet! There's still more work to do 💻
#dev #Swift #AppKit #macOS
October 29, 2025 at 11:59 AM
I changed the UI a bit for my native #macOS notes app 🚀

Now the note documents are displayed inside what looks like a page. I personally really like the design, but it’s just an option the user can toggle. If disabled, the note shows without the page outline. #dev #Swift #AppKit
October 26, 2025 at 7:50 PM
My notes app is slowly starting to be in a functional state.
But there's still much work to be done 😅 #dev #Swift #AppKit #macOS
October 26, 2025 at 9:32 AM
With my new #sewing hobby I’ve been looking for YouTube channels teaching how to sew garments.

One of the really good channels I’ve found is called Victoria Jin.

youtu.be/kWofmqyVqpM
Can't Find Trousers That Fit? Make Your Own.
YouTube video by Victoria Jin
youtu.be
September 18, 2025 at 1:48 PM
It’s crazy that #ActivityPub still doesn’t have a solution for letting users switch instances while transferring their posts and comments.

At least #ATProto has solved that problem.
August 28, 2025 at 9:35 AM
I'm doing an internship for my Software Engineering degree this fall semester.

One of my tasks is to develop a widget that clients can embed on their websites using a simple `<script>` tag. That tag should fetch a JavaScript file from our server that contains all the logic.
August 28, 2025 at 9:33 AM
Next step will be to get group chats working.
Will add a button with a plus (+) icon, which will bring up a new window where the user can type a group name and then click a "Create" button.
Working on a #JavaFX application as a portfolio project. It’s an instant messaging app that I am building using RMI. #Java
July 5, 2025 at 9:05 AM
There is a problem that happens when clicking the enter button on the keyboard for sending a message. For some reason, it is sending the same message twice. Not sure why. When clicking the "Send" button in the UI, it only sends the message once as expected.
Working on a #JavaFX application as a portfolio project. It’s an instant messaging app that I am building using RMI. #Java
July 5, 2025 at 9:04 AM
Working on a #JavaFX application as a portfolio project. It’s an instant messaging app that I am building using RMI. #Java
July 5, 2025 at 9:04 AM
The collapsing and uncollapsing folder functionality is now working. #dev #swift

1/2👇
April 24, 2025 at 1:25 PM
Now I have implemented a fullscreen image overlay on my personal website.

Hitting the escape key will close the overlay. I’m thinking about maybe making the background of the overlay slightly blurry. #dev
April 21, 2025 at 2:56 PM
My ‘Table of Contents’ (ToC) is now implemented on my personal website. When clicking on one of the items in the ToC, it smoothly scrolls down to the appropriate heading. #dev #nextjs

1/2👇
April 20, 2025 at 4:25 PM
I fixed the first problem today. Now all subdirectories are displayed with the correct nesting.

Before, all directories were displayed in the root level.

1/2👇
My notes app now has the capability to open a directory and display its contents in the sidebar.

But it’s not fully functional yet.

1/3👇
April 13, 2025 at 8:49 PM
My notes app now has the capability to open a directory and display its contents in the sidebar.

But it’s not fully functional yet.

1/3👇
April 12, 2025 at 9:42 PM