# `GSNameParticle`

*Class*

## Declaration

```swift
class GSNameParticle
```

```objc
@interface GSNameParticle : NSObject
```

```python
class GSNameParticle(NSObject)
```

## Topics

### Instance Properties

- [`GSNameParticle.active`](/Core/GlyphsCore/GSNameParticle/active) — The active.
- [`GSNameParticle.external`](/Core/GlyphsCore/GSNameParticle/external) — The external.
- [`GSNameParticle.externalValue`](/Core/GlyphsCore/GSNameParticle/externalValue)
- [`GSNameParticle.internal`](/Core/GlyphsCore/GSNameParticle/internal) — The internal.
- [`GSNameParticle.internalValue`](/Core/GlyphsCore/GSNameParticle/internalValue)
- [`GSNameParticle.isLeaf`](/Core/GlyphsCore/GSNameParticle/isLeaf)
- [`GSNameParticle.name`](/Core/GlyphsCore/GSNameParticle/name)
- [`GSNameParticle.names`](/Core/GlyphsCore/GSNameParticle/names) — The names.
- [`GSNameParticle.tempData`](/Core/GlyphsCore/GSNameParticle/tempData) — a  dictionary that stores data. It will not be written to disk.
- [`GSNameParticle.userData`](/Core/GlyphsCore/GSNameParticle/userData)

### Instance Methods

- [`GSNameParticle addName:`](/Core/GlyphsCore/GSNameParticle/addName:) — Adds the name
- [`GSNameParticle countOfNames`](/Core/GlyphsCore/GSNameParticle/countOfNames) — The number of names
- [`GSNameParticle indexOfObjectInNames:`](/Core/GlyphsCore/GSNameParticle/indexOfObjectInNames:) — Returns the index of name in names
- [`GSNameParticle insertObject:inNamesAtIndex:`](/Core/GlyphsCore/GSNameParticle/insertObject:inNamesAtIndex:) — Inserts the name at index into names
- [`GSNameParticle objectInNamesAtIndex:`](/Core/GlyphsCore/GSNameParticle/objectInNamesAtIndex:) — Returns object at idx in names
- [`GSNameParticle removeObjectFromNames:`](/Core/GlyphsCore/GSNameParticle/removeObjectFromNames:) — Removes the name
- [`GSNameParticle removeObjectFromNamesAtIndex:`](/Core/GlyphsCore/GSNameParticle/removeObjectFromNamesAtIndex:) — Removes the name at idx
- [`GSNameParticle removeUserDataForKey:`](/Core/GlyphsCore/GSNameParticle/removeUserDataForKey:) — Removed the object with this key.
- [`GSNameParticle setTempData:forKey:`](/Core/GlyphsCore/GSNameParticle/setTempData:forKey:) — Adds key/value to tempData. Pass nil as value to remove previous set data
- [`GSNameParticle setUserData:forKey:`](/Core/GlyphsCore/GSNameParticle/setUserData:forKey:) — Adds something to the fonts userData.
- [`GSNameParticle tempDataForKey:`](/Core/GlyphsCore/GSNameParticle/tempDataForKey:) — return value for key in tempData
- [`GSNameParticle userDataForKey:`](/Core/GlyphsCore/GSNameParticle/userDataForKey:) — convenience accessor to get to the content of the userData dict

## Relationships

### Inherits From

- `NSObject`

### Conforms To

- [`GSItemProtocol`](/Core/GlyphsCore/GSItemProtocol)
- [`GSUserDataProtocol`](/Core/GlyphsCore/GSUserDataProtocol)

