NSWindow

class NSWindow : NSResponder, NSAnimatablePropertyContainer, NSMenuItemValidation, NSUserInterfaceValidations, NSUserInterfaceItemIdentification, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol
  • Returns the window Quadrant the point is located in.

    Declaration

    Swift

    public func quadrant(of point: NSPoint) -> Quadrant

    Parameters

    point

    A point specifying a location in the coordinate system of the window.

  • Returns the screen Quadrant the point is located in.

    Declaration

    Swift

    public func screenQuadrant(of point: NSPoint) -> Quadrant?

    Parameters

    point

    A point specifying a location in the coordinate system of the window.