Currently, I am developing a quite complex Mac application using Core Data together with SwiftUI. The first challenge I encountered was the SwiftUI preview. I implemented a special preview model with some test data that is assigned to the preview structs of my views as EnvironmentObject. That works fine and I enriched my application step by step.
Well, but suddenly the previews stopped to work. I always got the error message „
Updating took more than 5 seconds.“ I suspected one of the recent changes to screw up my work although the completely built applications still worked fine. I walked through my code and certainly found some problematic points but nothing could make the preview show up again.
Recently I’ve refurbished an old project of mine, the Call Center Simulator CCsim (https://apps.apple.com/de/app/ccsim/id1519438028?mt=12). It was a lot of fun to develop this heavy multithreading app. One main reason for me at the very beginning was to see how big the influence of the actual shape of distributions (e.g. for the call duration) besides the mean value is on the results. Now we do have this tool and we can play around a little bit.
I couldn’t resist. Now, the new Apple Silicon macs are out and I had to buy a new Mac mini to test my applications on the new architecture (and the new macOS 11.0). Recently I released my refurbished project, the call center simulator CCsim (https://apps.apple.com/de/app/ccsim/id1519438028?mt=12). It is heavily relying on multithreading and I was eager to see what it is doing on M1-equipped macs. Weiterlesen
Do you also feel that this is the big disadvantage of modern picture projection compared to the old-fashioned slides: portrait format is really handicaped because you have two big black bars on the left and right hand sides. Video projectors have an aspect ratio of 4:3 or even 16:9 compared to the squared display size of old slide projectors. Weiterlesen
Recently I have migrated an old project of mine from Objective-C to Swift. It was not that difficult and it worked out fine, and I was eager to see how the performance of the migrated system would turn out. How big was my disappointment when I saw that the Swift version of my system was at least a factor of 10 slower than the Objective-C version with unchanged functionality. That can’t be true, I thought and debugged at little bit.