<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpringLoadingDestination/springLoadingActivated(_:draggingInfo:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSSpringLoadingDestination(im)springLoadingActivated:draggingInfo:"
  },
  "title" : "springLoadingActivated(_:draggingInfo:)"
}
-->

# springLoadingActivated(_:draggingInfo:)

Responds to the activation or deactivation of spring-loading on a destination.

```
@MainActor func springLoadingActivated(_ activated: Bool, draggingInfo: any NSDraggingInfo)
```

## Parameters

`activated`

A Boolean value indicating whether spring-loading has been activated on the destination. <doc://com.apple.documentation/documentation/Swift/true> indicates that spring-loading has been activated. <doc://com.apple.documentation/documentation/Swift/false> indicates that spring-loading has been deactivated.

`draggingInfo`

An `NSDraggingInfo` object, which provides information about the drag event, including the dragged data.

## Discussion

Typically, spring-loading is fully activated when a hover timeout occurs or the user finishes force clicking on a destination object to initiate spring-loading. In these cases, the `springLoadingActivated:draggingInfo:` method is only called once with an `activated` parameter value of <doc://com.apple.documentation/documentation/Swift/true>.

However, if the destination is configured with continuous activation (`NSSpringLoadingOptions` was set to `NSSpringLoadingContinuousActivation`), then the `springLoadingActivated:draggingInfo:` method is called twice. First, it’s called with an `activated` parameter value of <doc://com.apple.documentation/documentation/Swift/true> when a hover timeout occurs or the user begins force clicking on a destination object to initiate spring-loading. Then, it’s called again with an `activated` parameter value of <doc://com.apple.documentation/documentation/Swift/false> when the hover exits the destination’s bounds or the user finishes force clicking on the destination object.

## See Also

[Drag and Drop](/documentation/AppKit/drag-and-drop)

Support the direct manipulation of your app’s content using drag and drop.

[`NSSpringLoadingOptions`](/documentation/AppKit/NSSpringLoadingOptions)

These constants denote the type of spring-loading behavior configured for the destination object.

[`NSDraggingInfo`](/documentation/AppKit/NSDraggingInfo)

A set of methods that supply information about a dragging session.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)