Re: Cocoa Drawers Example
Re: Cocoa Drawers Example
- Subject: Re: Cocoa Drawers Example
- From: Scott Anguish <email@hidden>
- Date: Wed, 6 Jun 2001 17:13:45 -0400
What are you specifically trying to do?
At the simplest level you can drag out a window from the IB Palette that
has an NSDrawer already attached, and it will put the various items into
your nib (a window, the drawer and a top level content view which is
correctly connected to the drawer).
The basic idea though is that you can drag a drawer into your nib, and
then control-drag to make the connection from that drawer to the
'parentWindow' that it belongs too. You must then connect the
'contentView' of the drawer to the view that you want to have inside the
drawer area (add a customview/NSView to the top level of your nib by
dragging it from the palette).
Then, just drop in a button in the main window, control-drag it to the
NSDrawer icon and connect it to toggle: and you have a basic drawers
implementation setup!