A view controller that manages an NSTabView.
MOTabViewController is a subclass of MOViewController that manages an NSTabView. Each of its subcontrollers is a tab in the tab view. MOTabViewController manages swapping the views as the selected tab changes and ensures that a subcontroller's view is loaded only when it is about to be installed as the selected tab item view.
allowsSubcontrollerDragging |
- ( BOOL ) allowsSubcontrollerDragging;
Returns whether the receiver allows tabs to be dragged. NO by default. If set to YES then tabs can be dragged off the tab bar. A dragged tab's subcontroller is placed on the pasteboard using the MOViewControllerPboardType.
allowsSubcontrollerDropping |
- ( BOOL ) allowsSubcontrollerDropping;
Returns whether the receiver allows controllers to be dropped on it to create new tabs. NO by default. If set to YES then controllers can be dragged onto the tab bar to create new tabs. Pasteboard content of MOViewControllerPboardType is accepted as a drag type.
allowsTruncatedLabels |
- ( BOOL ) allowsTruncatedLabels;
Returns the receiver's view's allowsTruncatedLabels. Covers NSTabView's allowsTruncatedLabels method. By providing this convenience API MOTabViewController also makes it possible to query this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
controlSize |
- ( NSControlSize ) controlSize;
Returns the receiver's view's controlSize. Covers NSTabView's controlSize method. By providing this convenience API MOTabViewController also makes it possible to query this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
controlTint |
- ( NSControlTint ) controlTint;
Returns the receiver's view's controlTint. Covers NSTabView's controlTint method. By providing this convenience API MOTabViewController also makes it possible to query this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
delegate |
- ( id ) delegate;
Returns the receiver's delegate.
drawsBackground |
- ( BOOL ) drawsBackground;
Returns the receiver's view's drawsBackground. Covers NSTabView's drawsBackground method. By providing this convenience API MOTabViewController also makes it possible to query this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
font |
- ( NSFont *) font;
Returns the receiver's view's font. Covers NSTabView's font method. By providing this convenience API MOTabViewController also makes it possible to query this state without having to cause the view to be created if it is not yet needed.
indexOfSelectedSubcontroller |
- ( int ) indexOfSelectedSubcontroller;
Returns the index of the selected subcontroller. This method does NOT cause the view to be loaded if it is not already.
selectSubcontroller: |
- ( void ) selectSubcontroller: (MOViewController *) subcontroller;
Selects the given subcontroller, making it the active tab. This method does NOT cause the view to be loaded if it is not already.
- subcontroller
- The subcontroller.
selectSubcontrollerAtIndex: |
- ( void ) selectSubcontrollerAtIndex: (int ) selIndex;
Selects the subcontroller at the given index, making it the active tab. This method does NOT cause the view to be loaded if it is not already.
- selIndex
- The index.
selectedSubcontroller |
- ( id ) selectedSubcontroller;
Returns the subcontroller for the selected tab. This method does NOT cause the view to be loaded if it is not already.
selectedTabIsContentConfiguration |
- ( BOOL ) selectedTabIsContentConfiguration;
Returns whether the selected tab is considered content configuration. By default, this is NO and the selected tab is considered geometry configuration.
setAllowsSubcontrollerDragging: |
- ( void ) setAllowsSubcontrollerDragging: (BOOL ) flag;
Sets whether the receiver allows tabs to be dragged. NO by default. If set to YES then tabs can be dragged off the tab bar. A dragged tab's subcontroller is placed on the pasteboard using the MOViewControllerPboardType.
- flag
- Whether the receiver allows tabs to be dragged.
setAllowsSubcontrollerDropping: |
- ( void ) setAllowsSubcontrollerDropping: (BOOL ) flag;
Sets whether the receiver allows controllers to be dropped on it to create new tabs. NO by default. If set to YES then controllers can be dragged onto the tab bar to create new tabs. Pasteboard content of MOViewControllerPboardType is accepted as a drag type. A MOTabViewController may still accept drops of things other than controllers on or between its tabs without this being set to YES.
- flag
- Whether the receiver allows controllers to be dropped on it to create new tabs.
setAllowsTruncatedLabels: |
- ( void ) setAllowsTruncatedLabels: (BOOL ) flag;
Sets the receiver's view's allowsTruncatedLabels. Covers NSTabView's setAllowsTruncatedLabels: method. By providing this convenience API MOTabViewController also makes it possible to set this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
- flag
- The allowsTruncatedLabels.
setControlSize: |
- ( void ) setControlSize: (NSControlSize ) controlSize;
Sets the receiver's view's controlSize. Covers NSTabView's setControlSize: method. By providing this convenience API MOTabViewController also makes it possible to set this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
- controlSize
- The controlSize.
setControlTint: |
- ( void ) setControlTint: (NSControlTint ) controlTint;
Sets the receiver's view's controlTint. Covers NSTabView's setControlTint: method. By providing this convenience API MOTabViewController also makes it possible to set this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
- controlTint
- The controlTint.
setDelegate: |
- ( void ) setDelegate: (id ) delegate;
Sets the receiver's delegate.
- delegate
- The delegate.
setDrawsBackground: |
- ( void ) setDrawsBackground: (BOOL ) flag;
Sets the receiver's view's drawsBackground. Covers NSTabView's setDrawsBackground: method. By providing this convenience API MOTabViewController also makes it possible to set this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
- flag
- The drawsBackground.
setFont: |
- ( void ) setFont: (NSFont *) font;
Sets the receiver's view's font. Covers NSTabView's setFont: method. By providing this convenience API MOTabViewController also makes it possible to set this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
- font
- The font.
setSelectedTabIsContentConfiguration: |
- ( void ) setSelectedTabIsContentConfiguration: (BOOL ) flag;
Sets whether the selected tab is considered content configuration. By default, this is NO and the selected tab is considered geometry configuration. If the set of tabs that the receiver manages is based somehow on the data content it is displaying, this API can be used to make the MOTabViewController save that state as content configuration.
- flag
- Whether the selected tab is considered content configuration.
setTabViewType: |
- ( void ) setTabViewType: (NSTabViewType ) tabViewType;
Sets the receiver's view's tabViewType. Covers NSTabView's setTabViewType: method. By providing this convenience API MOTabViewController also makes it possible to set this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
- tabViewType
- The tabViewType.
tabView |
- ( id ) tabView;
Returns the receiver's NSTabView. This method will cause the view to be loaded if necessary.
tabViewItemClass |
+ ( Class ) tabViewItemClass;
Returns the subclass of NSTabViewItem to use. MOTabViewController manages the tab view items of its tab view. This method is provided in case a subclass wants to use a subclass of NSTabViewItem. The default return value of this method is [NSTabViewItem class].
tabViewType |
- ( NSTabViewType ) tabViewType;
Returns the receiver's view's tabViewType. Covers NSTabView's tabViewType method. By providing this convenience API MOTabViewController also makes it possible to query this state without having to cause the view to be created if it is not yet needed. This state is saved and restored as part of the controller's geometry configuration.
(Last Updated 3/20/2005)