Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add convenience methods to load views from nibs #45

Closed
jspahrsummers opened this Issue · 2 comments

2 participants

@jspahrsummers

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.

@joshaber
Owner

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

@jspahrsummers

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
Something went wrong with that request. Please try again.