Nevermind... I just added this in makeNSView and it worked great:
mtkView.isPaused =false
I thought it was false by default.
Post
Replies
Boosts
Views
Activity
The suggested code works great, except I can’t get it to update continuously. It will load perfectly, call draw once, then not call it again unless I’m resizing the window. Is there anyway to call draw continuously?
I'm new to macOS development and I also have this question...
I can confirm it happens in Big Sur Too
Hi! I'm also very new to this. I found for me, the best place to start was to think about what sort of app I'm most interested in making, and then listing out the things I may need to know. Then I started searching for specific tutorials on those topics. I just googled stuff like "macOS Document based app tutorial", "Core Data tutorial", "How to make a popup menu in macOS". This led me to blogs and websites that maybe had more specific knowledge, rather than just a general overview of swift or iOS development. Then I just started working through them one at time. Usually doing one tutorial a day.
Not all of them were up to date, but I think this helped me learn better. Thing may not work as described, so I'd have to search more and find how to solve an issue when things had changed in newer versions.
Here are some specific places I checked out:
hackingwithswift
raywenderlich
metalbyexample
2etime on YouTube (more metal stuff)
swiftdevjournal
Hope that helps! And from one newbie to another, best of luck!