# `GSNode 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

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

