# `GSLayoutManager layerIndexForGlyphSelectionAtPoint:`

*Instance Method*

Like [`GSLayoutManager layerIndexForPoint:`](/Core/GlyphsApp/GSLayoutManager/layerIndexForPoint:), but prefers a layer whose drawn outline contains the point (searching outward from the active layer), falling back to the layer-box hit test when no outline is hit. Used for double-click glyph selection.

## Declaration

```swift
func layerIndexForGlyphSelection(at thePoint: NSPoint) -> UInt
```

```objc
- (NSUInteger) layerIndexForGlyphSelectionAtPoint:(NSPoint) thePoint;
```

```python
layerIndexForGlyphSelectionAtPoint_(thePoint: NSPoint) -> int
```

