---
title: "objectiveCValue(for:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/attributescopes/foundationattributes/linkattribute/objectivecvalue(for:)"
---

# objectiveCValue(for:)

Returns an object for a specified URL value.

## Declaration

```swift
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

Return Value The object for the specified URL.

## See Also

### Accessing the Attribute Name and Value

- [name](foundation/attributescopes/foundationattributes/linkattribute/name.md)
- [value(for:)](foundation/attributescopes/foundationattributes/linkattribute/value(for:).md)
- [AttributeScopes.FoundationAttributes.LinkAttribute.Value](foundation/attributescopes/foundationattributes/linkattribute/value.md)
- [AttributeScopes.FoundationAttributes.LinkAttribute.ObjectiveCValue](foundation/attributescopes/foundationattributes/linkattribute/objectivecvalue.md)
