Instance Method

insertTitlebarAccessoryViewController:atIndex:

Inserts the view controller into the window’s array of title bar accessory view controllers at the specified index.

Declaration

- (void)insertTitlebarAccessoryViewController:(NSTitlebarAccessoryViewController *)childViewController atIndex:(NSInteger)index;

Parameters

childViewController

The title bar accessory view controller to insert.

index

The index at which to insert childViewController.

See Also

Managing the Toolbar-Title Bar Area

- addTitlebarAccessoryViewController:

Adds the specified title bar accessory view controller to the window.

- performWindowDragWithEvent:

Starts a drag based on the specified mouse-down event.

- removeTitlebarAccessoryViewControllerAtIndex:

Removes the view controller at the specified index from the window’s array of title bar accessory view controllers.

titlebarAccessoryViewControllers

An array of title bar accessory view controllers that are currently added to the window.