# `GSDistinctParentsOfObjectsOfClass`

*Function*

Same as `GSDistinctParentsOfObjects`, but only input objects of the given class are considered; any other objects are ignored.

## Declaration

```swift
func GSDistinctParentsOfObjectsOfClass(_ objects: (any NSFastEnumeration)?, _ filterClass: AnyClass?) -> NSHashTable<AnyObject>?
```

```objc
NSHashTable *GSDistinctParentsOfObjectsOfClass(id<NSFastEnumeration>objects, Class filterClass);
```

```python
GSDistinctParentsOfObjectsOfClass(objects: object, filterClass: type) -> NSHashTable
```

