Requests permission for a
to move a
.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
func rulerView(_ ruler: NSRuler View, shouldMove marker: NSRuler Marker) -> Bool
Discussion
If the client returns true
the ruler view allows the user to move the marker; if the client returns false
the marker doesn’t move.
The user’s ability to move a marker is typically set on the marker itself, using NSRulerMarker’s is
method. You should use this client view method only when the marker’s movability can vary depending on a variable condition (for example, if graphic items can be locked down to prevent them from being inadvertently moved).