Need some help here!!

Hi, I have a nib file that I would like to add a quit button. I am having trouble getting the application to QUIT, I can get the window to close no problem. If there is anyone that can help I would greatly appreciate it. Thanks in advance.

Note: If you could please be very specific as I am new to this. Thank You.