# `GSGlyph setLockedFast:`

*Instance Method*

Changes whether editing the glyph is disabled without registering undo.

## Declaration

```swift
func setLockedFast(_ locked: Bool)
```

```objc
- (void) setLockedFast:(BOOL) locked;
```

```python
setLockedFast_(locked: bool)
```

## Parameters

- `locked` — Whether editing is disabled.

## Discussion

Use this when restoring or constructing a glyph rather than for an interactive edit.

## See Also

### Locking

- [`GSGlyph initLock`](/Core/GlyphsCore/GSGlyph/initLock) — Prepares the glyph for synchronized access.
- [`GSGlyph hasLock`](/Core/GlyphsCore/GSGlyph/hasLock) — Whether the glyph has been prepared for synchronized access.
- [`GSGlyph lockRead`](/Core/GlyphsCore/GSGlyph/lockRead) — Acquires shared access to glyph-level cached state.
- [`GSGlyph unlockRead`](/Core/GlyphsCore/GSGlyph/unlockRead) — Releases shared access acquired with [`GSGlyph lockRead`](/Core/GlyphsCore/GSGlyph/lockRead).
- [`GSGlyph lockWrite`](/Core/GlyphsCore/GSGlyph/lockWrite) — Acquires exclusive access to glyph-level cached state.
- [`GSGlyph unlockWrite`](/Core/GlyphsCore/GSGlyph/unlockWrite) — Releases exclusive access acquired with [`GSGlyph lockWrite`](/Core/GlyphsCore/GSGlyph/lockWrite).
- [`GSGlyph lockReadLayers`](/Core/GlyphsCore/GSGlyph/lockReadLayers) — Acquires shared access to the layer collection.
- [`GSGlyph unlockReadLayers`](/Core/GlyphsCore/GSGlyph/unlockReadLayers) — Releases shared access acquired with [`GSGlyph lockReadLayers`](/Core/GlyphsCore/GSGlyph/lockReadLayers).
- [`GSGlyph lockWriteLayers`](/Core/GlyphsCore/GSGlyph/lockWriteLayers) — Acquires exclusive access to the layer collection.
- [`GSGlyph unlockWriteLayers`](/Core/GlyphsCore/GSGlyph/unlockWriteLayers) — Releases exclusive access acquired with [`GSGlyph lockWriteLayers`](/Core/GlyphsCore/GSGlyph/lockWriteLayers).

