# `GSFont indexOfObjectInAllMasters:`

*Instance Method*

Returns the index of a local or imported master, or `NSNotFound` when the master is not in the font.

## Declaration

```objc
- (NSUInteger) indexOfObjectInAllMasters:(GSFontMaster *) master;
```

```python
indexOfObjectInAllMasters_(master: GSFontMaster) -> int
```

## Discussion

Local masters are indexed before imported masters.

## See Also

### Imported Masters and Fonts

- [`GSFont.importedFontMasters`](/Core/GlyphsCore/GSFont/importedFontMasters) — The masters imported from linked fonts.
- [`GSFont.importedFonts`](/Core/GlyphsCore/GSFont/importedFonts) — The fonts that supply imported glyphs or imported masters.
- [`GSFont.allMasters`](/Core/GlyphsCore/GSFont/allMasters) — The local and imported masters of the font.
- [`GSFont.countOfAllMasters`](/Core/GlyphsCore/GSFont/countOfAllMasters) — The number of local and imported masters.
- [`GSFont allMasterAtIndex:`](/Core/GlyphsCore/GSFont/allMasterAtIndex:) — Returns the local or imported master at an index, or `nil` when the index is out of bounds.
- [`GSFont reloadLinkedFonts:`](/Core/GlyphsCore/GSFont/reloadLinkedFonts:) — Reloads linked fonts and refreshes imported masters and imported glyphs.

