I am quite new to the whole Objective-C thing and pretty much to programming in general. I am currently writing a TicTacToe app. There are two things I need help with as of now and could possibly grow to many more in the future. #1 I have the Preferences button in the main menu open up a new window nib name "PreferenceController" and I make a subclass of NSWindowController named "preferenceController" and I want to use a button at the bottom close the window. I really have no idea how to go about doing that. Help would be appreciated. #2 I want to make one function call another one. I could go with out this but copy and pasting it nine times just seems like some ugly coding.