Instance Property

containerFrame

The rectangle (in screen coordinates) of the item’s visible content.

Declaration

var containerFrame: NSRect { get }

Discussion

The rectangle in this property corresponds to the onscreen frame rectangle of the item. This rectangle may or may not intersect the sourceFrame rectangle of the item. An intersection of the rectangles means that at least part of the item is visible onscreen.

The rectangle in this property may be a clipped version of the source frame or it might be NSZeroRect if the item is offscreen or the clipping rectangle cannot be determined. The system treats a value of NSZeroRect as meaning the item is fully visible.

See Also

Getting the Visual Attributes

var sourceFrame: NSRect

The rectangle (in screen coordinates) occupied by the item in the host app’s source window.

var preferredPresentationSize: CGSize

The ideal presentation size of the item.

var preferredPresentationStyle: NSItemProvider.PreferredPresentationStyle

The preferred style for presenting the item provider's data.

enum NSItemProvider.PreferredPresentationStyle

The presentation styles that determine how a view should show an item provider's data.