Only call -layout if NSView instances respond to it
Use Xcode project to build as a framework