Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Replace RBLViewController with block callbacks #86

Open
jspahrsummers opened this issue May 13, 2013 · 1 comment
Open

Replace RBLViewController with block callbacks #86

jspahrsummers opened this issue May 13, 2013 · 1 comment

Comments

@jspahrsummers
Copy link
Contributor

RBLViewController is of dubious quality (who is that @joshaber guy that wrote JAViewController anyways?), and involves some hackiness (like #85). It can also be useful to know when subviews appear/disappear, and nested view controllers are never fun.

Instead, maybe we could add a category to NSView that allows block callbacks to be installed for significant events (e.g., viewWillAppear and such). This doesn't enforce any kind of architectural pattern, and also makes it easier to create signals out of those events.

@jspahrsummers
Copy link
Contributor Author

For future implementation, we'll need to consider the swizzling problems I outlined in #87 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant