<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributeScopes/FoundationAttributes/LinkAttribute/objectiveCValue(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation15AttributeScopesO0A10AttributesV04LinkB0O15objectiveCValue3forSo8NSObjectCAA3URLV_tKFZ"
  },
  "title" : "objectiveCValue(for:)"
}
-->

# objectiveCValue(for:)

Returns an object for a specified URL value.

```
static func objectiveCValue(for value: URL) throws -> NSObject
```

## Parameters

`value`

A URL to produce an <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class> from.

## Return Value

The object for the specified URL.

---

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)