# `GSPalettes nameForPalette:`

*Instance Method*

Returns the name for the specified palette index.

## Declaration

```swift
func name(forPalette paletteIdx: UInt) -> String?
```

```objc
- (NSString *) nameForPalette:(NSUInteger) paletteIdx;
```

```python
nameForPalette_(paletteIdx: int) -> str
```

## Parameters

- `paletteIdx` — The index of the palette.

## Return Value

The name of the palette, or nil if not found.

