Instance Method

performWindowDragWithEvent:

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

Declaration

- (void)performWindowDragWithEvent:(NSEvent *)event;

Parameters

event

The original mouse-down event received by the application or a view.

Discussion

Your application (or a view) can call this method after receiving and examining a mouse-down event. Upon examination of the event, a view may allow that portion of the window to start a window drag and can hand off the work to the Window Server process by calling this method. Doing so allows the window to participate in space switching and other system features.

This method returns right away, and a mouse-up event may not get sent.

See Also

Managing the Toolbar-Title Bar Area

- addTitlebarAccessoryViewController:

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

- insertTitlebarAccessoryViewController:atIndex:

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

- 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.