Per SPL, setActionCommand means: "Sets the action command to the indicated string. If the string is not empty, activating the interactor generates a GActionEvent.
An example from pset3 is buttons.c:
GButton button = newGButton("Button")
Per the walkthrough from Daven, "click" means a unique identifier being associated with the button.
I'm confused with what setActionCommand does. Does it mean that if the button is clicked, the button is called "click"? Or that when it is clicked, the state is "click"?
And when it says "if (strcmp(getActionCommand(event), "click" ==0)", is that checking if the button is in the "clicked/on" stage?