Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add convenience methods to load views from nibs #45

Closed
jspahrsummers opened this Issue Oct 29, 2012 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

jspahrsummers commented Oct 29, 2012

It's often useful to load a view from a nib without needing or wanting an attached view controller. We could offer a category on NSView that makes this easy.

Note that it's not sufficient to use and discard an NSViewController, since that requires that the view outlet be hooked up in the nib, which may not necessarily be the case (or, at least, shouldn't be a requirement).

GHfM has some code to do this which could be genericized and cleaned up for Rebel.

Member

joshaber commented Oct 30, 2012

And just for future selves, 10.8 has a method that makes this easier without the cray memory management semantics.

Contributor

jspahrsummers commented May 3, 2013

We're moving away from this in GHfM, partly because it's hard to get the semantics right, so I don't think we should do this after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment