![]() ![]() To follow this tutorial you’ll need the most recent version of macOS and Xcode installed on your mac. You’ll see how the life cycle methods allow you to hook into important events for the UI of your app, together with how view controllers compare with window controllers. In this macOS view controllers tutorial you’ll discover the wide range of functionality that is baked into vanilla view controllers, along with learning how you can create your own view controller subclasses to build up your app in an easy-to-understand manner. ![]() View controllers are responsible for hooking up the model layer to the view layer, and have an incredibly important role in the architecture of your macOS app. Apple has designed the frameworks available on macOS around the Model-View-Controller design pattern, and as such has provided various controller objects that are responsible for managing the UI. This helps keep code maintainable and easy to understand. When writing any code, it’s important to get clear separation of concerns - functionality should be split out into appropriate smaller classes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |