Inherits from NSViewController
Declared in INDockableViewController.h
INDockableViewController.m

Overview

View controller that displays the content for a single dockable pane of the dockable window controller.

Tasks

Properties

attached

Whether this view controller is attached or in its own separate window.

@property (nonatomic, assign, getter=isAttached) BOOL attached

Declared In

INDockableViewController.h

detachControl

The detach control for the view controller. This control is automatically created when the view controller is created. It can be placed anywhere in your view hierarchy, and dragging it will trigger a detach from the primary window.

@property (nonatomic, strong, readonly) INDockableDetachControl *detachControl

Declared In

INDockableViewController.h

dockableWindowController

The dockable window controller that owns this view controller.

@property (nonatomic, assign, readonly) INDockableWindowController *dockableWindowController

Declared In

INDockableViewController.h

titleBarView

The view to display in the title bar. This view will be resized to fit the title bar size.

@property (nonatomic, strong) IBOutlet NSView *titleBarView

Declared In

INDockableViewController.h

uniqueIdentifier

The unique identifier for this view controller. Set to a generated UUID by default.

@property (nonatomic, copy) NSString *uniqueIdentifier

Discussion

If you decide to set this yourself, ensure that this value is unique from the identifiers of any other view controllers. If this rule is not followed, the behaviour is undefined. Setting this identifier will set the identifier of this view controller’s view as well.

Warning: Do not modify the identifier of the view after the view controller has been created.

Declared In

INDockableViewController.h

window

The parent window of this view controller

@property (nonatomic, assign, readonly) NSWindow *window

Declared In

INDockableViewController.h

Instance Methods

viewControllerDidAttach

Called when the view controller is attached to the primary window

- (void)viewControllerDidAttach

Discussion

Always call super somewhere in your implementation.

Declared In

INDockableViewController.h

viewControllerDidDetach

Called when the view controller is detached from the primary window.

- (void)viewControllerDidDetach

Discussion

Always call super somewhere in your implementation.

Declared In

INDockableViewController.h