I have one NSButton and I want when I pressed it to stay as pressed.
If those are really NSButtons, then open the xib in Xcode, click on the button, go to the "Attributes" pane, and change the "Type" of the button to "Push On Push Off". That makes it "sticky".