# `GSShortcutItem applyShortcutForIdentifier:toMenuItem:`

*Type Method*

## Declaration

```swift
class func applyShortcut(forIdentifier identifier: String, to menuItem: NSMenuItem)
```

```objc
+ (void) applyShortcutForIdentifier:(NSString *) identifier toMenuItem:(NSMenuItem *) menuItem;
```

```python
applyShortcutForIdentifier_toMenuItem_(identifier: str, menuItem: NSMenuItem)
```

