Creating a custom view with AppKit