Develop a Mac Menu Bar App in 2022

preview_player
Показать описание
Develop a Mac Menu Bar App in 2022

mac app development,how to make a mac application,swift macos app,swift macos app tutorial,swift macos app development,swift mac app,swift mac app tutorial,swift macos,swift mac,swift macbook,swift macos tutorial,mac app tutorial,xcode mac,xcode mac app tutorial,xcode mac app,make a mac app,create a mac app,mac app development tutorial,mac app development swift,m1 mac software development,mac mini software development,xcode,swift,mac app tutorial 2022
Рекомендации по теме
Комментарии
Автор

Too many bad practices:
- Monkey patching NSImage with static data. It's not needed to do that at all. And even if you did, one extension would be enough.
- Putting everything in AppDelegate, making it too complicated. There should be a Menu controller.
- Not following Swift Styleguides.
- Constants in code. The static content should be moved to a dedicated file.
- No comments in the code. If you want someone to understand your code (or you teach it), you should put comments before big blocks of code so they don't have to read through the block. I do this for myself even.

In my opinion "Logic" is too vague of a class name for what an application does and is confusing. Perhaps "MenuLogic" might be more helpful, or using the name of the class that is actually doing what you need, like "ResourceMeter".
Also "DoSomeAction" is not a great name for a function.

You didn't teach a lot of things and just skipped over them.
- I don't know how you added the menu bar images
- I don't understand why we need the Autolauncher and why the main app can't just be that app that launches.

I'm sorry I can't follow this method of teaching.

kriogenx