Question about line the "For the more curious..." section


#1

In the “For the more curious: UIMenuController and UIResponderStandardEditActions” section, at the end, there’s this line:
“If you want to implement one of these methods but do not want it to appear in the menu, you can override canPerformAction:withSender: to return NO.” (followed by a little code).

I’m just wondering, what is a situation where this would be the case? Just curious!


#2

A good example is if you conditionally wanted it to appear. For example, if you wanted to give one group of users (admins, for example) the ability to “Delete”, but you didn’t want to give that ability to another group of users.