# `GSNode.locked`

*Instance Property*

Whether the node should reject edits.

## Declaration

```swift
var isLocked: Bool { get set }
```

```objc
@property (nonatomic, getter=isLocked) BOOL locked;
```

```python
isLocked() -> bool
setLocked_(locked: bool)
```

## Discussion

The node does not enforce this locking itself; instead, higher-level API like [`GSPath`](/Core/GlyphsCore/GSPath) use this flag to inform their operations.

