<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewFocusDidChangeNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSViewFocusDidChangeNotification"
  },
  "title" : "NSViewFocusDidChangeNotification"
}
-->

# NSViewFocusDidChangeNotification

Deprecated in macOS 10.4 and later. Posted for an `NSView` object and each of its descendants (recursively) whenever the frame or bounds geometry of the view changed.

```
extern NSNotificationName NSViewFocusDidChangeNotification;
```

## Discussion

Instead use `NSViewBoundsDidChangeNotification` and `NSViewFrameDidChangeNotification` to get the same information provided by this notification.

The notification object is the view whose geometry changed. This notification does not contain a `userInfo` dictionary.

## See Also

[`frameDidChangeNotification`](/documentation/AppKit/NSView/frameDidChangeNotification)

A notification that posts when the view’s frame rectangle changes to a new value.

[`boundsDidChangeNotification`](/documentation/AppKit/NSView/boundsDidChangeNotification)

A notification that posts when the view’s bounds rectangle changes to a new value independently of the frame rectangle.



---

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)