<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPathCell/mouseEntered(with:frame:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPathCell(im)mouseEntered:withFrame:inView:"
  },
  "title" : "mouseEntered(with:frame:in:)"
}
-->

# mouseEntered(with:frame:in:)

Displays the cell component over which the mouse is hovering.

```
func mouseEntered(with event: NSEvent, frame: NSRect, in view: NSView)
```

## Parameters

`event`

The mouse-entered event.

`frame`

The frame in which the cell is located.

`view`

The view in which the cell is located.

## Discussion

The `NSPathCell` object dynamically animates to display the component that the mouse is hovering over using mouse-entered and mouse-exited events. The control should call these methods to correctly display the hovered component to the user. The control can acquire rectangles to track using [`rect(of:withFrame:in:)`](/documentation/AppKit/NSPathCell/rect(of:withFrame:in:)).

---

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)