# `GSBaseObject tempDataForKey:`

*Instance Method*

The temporary value for a key, or `nil` if no value is set.

## Declaration

```swift
func tempData(forKey key: String) -> Any?
```

```objc
- (id) tempDataForKey:(NSString *) key;
```

```python
tempDataForKey_(key: str) -> object
```

## See Also

### Temporary Data

- [`GSBaseObject.tempData`](/Core/GlyphsCore/GSBaseObject/tempData) — Values associated with the object for transient use.
- [`GSBaseObject countOfTempData`](/Core/GlyphsCore/GSBaseObject/countOfTempData) — The number of temporary values.
- [`GSBaseObject setTempData:forKey:`](/Core/GlyphsCore/GSBaseObject/setTempData:forKey:) — Sets or removes a temporary value.

