Up

# NSDrawer

### Authors

Douglas Simons (`doug.simons@testplant.com`)
Gregory Casamento (`greg_casamento@yahoo.com`)
Fred Kiefer (`FredKiefer@gmx.de`)

> The drawer class

Copyright: (C) 2001 Free Software Foundation, Inc.

### Contents -

1. Software documentation for the NSDrawer class
2. Software documentation for the NSDrawerDelegate class

# Software documentation for the NSDrawer class

## NSDrawer : NSResponder

> Declared in:
>   AppKit/NSDrawer.h

Availability: OpenStep
Description forthcoming.

Instance Variables
Method summary

- -close
- -close:
- -contentSize
- -contentView
- -delegate
- -edge
- -initWithContentSize:preferredEdge:
- -leadingOffset
- -maxContentSize
- -minContentSize
- -open
- -open:
- -openOnEdge:
- -parentWindow
- -preferredEdge
- -setContentSize:
- -setContentView:
- -setDelegate:
- -setLeadingOffset:
- -setMaxContentSize:
- -setMinContentSize:
- -setParentWindow:
- -setPreferredEdge:
- -setTrailingOffset:
- -state
- -toggle:
- -trailingOffset

### close

- (void) close;
Availability: OpenStep
Description forthcoming.

### close:

- (void) close: (id)sender;
Availability: OpenStep
Description forthcoming.

### contentSize

- (NSSize) contentSize;
Availability: OpenStep
Description forthcoming.

### contentView

- (NSView*) contentView;
Availability: OpenStep
Description forthcoming.

### delegate

- (id) delegate;
Availability: OpenStep
Description forthcoming.

### edge

- (NSRectEdge) edge;
Availability: OpenStep
Description forthcoming.

### initWithContentSize: preferredEdge:

- (id) initWithContentSize: (NSSize)contentSize preferredEdge: (NSRectEdge)edge;
Availability: OpenStep
Description forthcoming.

### leadingOffset

- (CGFloat) leadingOffset;
Availability: OpenStep
Description forthcoming.

### maxContentSize

- (NSSize) maxContentSize;
Availability: OpenStep
Description forthcoming.

### minContentSize

- (NSSize) minContentSize;
Availability: OpenStep
Description forthcoming.

### open

- (void) open;
Availability: OpenStep
Description forthcoming.

### open:

- (void) open: (id)sender;
Availability: OpenStep
Description forthcoming.

### openOnEdge:

- (void) openOnEdge: (NSRectEdge)edge;
Availability: OpenStep
Description forthcoming.

### parentWindow

- (NSWindow*) parentWindow;
Availability: OpenStep
Description forthcoming.

### preferredEdge

- (NSRectEdge) preferredEdge;
Availability: OpenStep
Description forthcoming.

### setContentSize:

- (void) setContentSize: (NSSize)size;
Availability: OpenStep
Description forthcoming.

### setContentView:

- (void) setContentView: (NSView*)aView;
Availability: OpenStep
Description forthcoming.

### setDelegate:

- (void) setDelegate: (id)anObject;
Availability: OpenStep
Description forthcoming.

### setLeadingOffset:

- (void) setLeadingOffset: (CGFloat)offset;
Availability: OpenStep
Description forthcoming.

### setMaxContentSize:

- (void) setMaxContentSize: (NSSize)size;
Availability: OpenStep
Description forthcoming.

### setMinContentSize:

- (void) setMinContentSize: (NSSize)size;
Availability: OpenStep
Description forthcoming.

### setParentWindow:

- (void) setParentWindow: (NSWindow*)parent;
Availability: OpenStep
Description forthcoming.

### setPreferredEdge:

- (void) setPreferredEdge: (NSRectEdge)preferredEdge;
Availability: OpenStep
Description forthcoming.

### setTrailingOffset:

- (void) setTrailingOffset: (CGFloat)offset;
Availability: OpenStep
Description forthcoming.

### state

- (NSInteger) state;
Availability: OpenStep
Description forthcoming.

### toggle:

- (void) toggle: (id)sender;
Availability: OpenStep
Description forthcoming.

### trailingOffset

- (CGFloat) trailingOffset;
Availability: OpenStep
Description forthcoming.

## Instance Variables for NSDrawer Class

### _contentSize

@protected NSSize _contentSize;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _currentEdge

@protected NSRectEdge _currentEdge;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _delegate

@protected id _delegate;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _drawerWindow

@protected id _drawerWindow;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _leadingOffset

@protected CGFloat _leadingOffset;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _maxContentSize

@protected NSSize _maxContentSize;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _minContentSize

@protected NSSize _minContentSize;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _preferredEdge

@protected NSRectEdge _preferredEdge;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _state

@protected NSInteger _state;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

### _trailingOffset

@protected CGFloat _trailingOffset;
Availability: OpenStep
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

# Software documentation for the NSDrawerDelegate class

## NSDrawerDelegate

> Declared in:
>   AppKit/NSDrawer.h

Availability: OpenStep
Description forthcoming.
Method summary

- -drawerDidClose:
- -drawerDidOpen:
- -drawerShouldClose:
- -drawerShouldOpen:
- -drawerWillClose:
- -drawerWillOpen:
- -drawerWillResizeContents:toSize:

### drawerDidClose:

- (void) drawerDidClose: (NSNotification*)notification;
Availability: OpenStep
Description forthcoming.

### drawerDidOpen:

- (void) drawerDidOpen: (NSNotification*)notification;
Availability: OpenStep
Description forthcoming.

### drawerShouldClose:

- (BOOL) drawerShouldClose: (NSDrawer*)sender;
Availability: OpenStep
Description forthcoming.

### drawerShouldOpen:

- (BOOL) drawerShouldOpen: (NSDrawer*)sender;
Availability: OpenStep
Description forthcoming.

### drawerWillClose:

- (void) drawerWillClose: (NSNotification*)notification;
Availability: OpenStep
Description forthcoming.

### drawerWillOpen:

- (void) drawerWillOpen: (NSNotification*)notification;
Availability: OpenStep
Description forthcoming.

### drawerWillResizeContents: toSize:

- (NSSize) drawerWillResizeContents: (NSDrawer*)sender toSize: (NSSize)contentSize;
Availability: OpenStep
Description forthcoming.

Up