init(contentSize:preferredEdge:)
Creates a new drawer with the given size on the specified edge of the parent window.
Declaration
init(contentSize: NSSize, preferredEdge edge: NSRectEdge)Parameters
- contentSize:
The size of the new drawer.
- edge:
The edge to which to attach the new drawer.
Discussion
You must specify the parent window and content view of the drawer using the methods in this class. When you create a drawer in Interface Builder, this constructor is invoked. The NSDrawer Inspector in Interface Builder allows you to set the edge, and you can specify the size by changing the content view in Interface Builder.
See Positioning and Sizing a Drawer for additional detail on content size and drawer positioning.
See Also
Related Documentation
- Drawer Programming Topics