tmandry / Swindler

macOS window management library for Swift
https://tmandry.github.io/Swindler/docs/main/
MIT License
695 stars 66 forks source link

Cleanly separate delegates from public classes #3

Closed tmandry closed 6 years ago

tmandry commented 8 years ago

Right now the Delegate code has to create and accept "materialized" public classes (State, Application, and Window), which in turn depend on the delegates, for implementing object properties and in order to emit events. An abstraction layer which converts between the two is needed so there's clean separation of concerns.

tmandry commented 6 years ago

I'm not convinced this is as important as I once thought it was. Closing for now.