<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/webPlugInSetIsSelected(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)webPlugInSetIsSelected:"
  },
  "title" : "webPlugInSetIsSelected(_:)"
}
-->

# webPlugInSetIsSelected(_:)

Controls plug-in behavior based on its selection.

```
func webPlugInSetIsSelected(_ isSelected: Bool)
```

## Parameters

`isSelected`

If [`YES`](/documentation/ObjectiveC/YES), the plug-in is currently selected. Otherwise, it is not selected.

## Discussion

This may be used, for example, to change the plug-in’s appearance when it is selected by the user.

---

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)