Returns whether a new marker can be added.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (BOOL)rulerView:(NSRuler View *)ruler shouldAddMarker:(NSRuler Marker *)marker;
Parameters
aRulerView
The ruler view sending the message.
aMarker
The marker to be added.
Return Value
YES
if a
can be added, NO
otherwise.
Discussion
The receiver checks for permission to make the change by invoking should
and returning the return value of that message. If the change is allowed, the receiver is then sent a ruler
message.