Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
KitchenTimer is a simple application that will allow text entry of a number, and then count down to zero from that number. We will demonstrate how to use a separate file for the application's controller and let the application delegate be a delegate for NSApplication only. We will also be demonstrating how to use NSTimer, which is Cocoa's answer to the idle handlers used in AppleScript Editor applets.
Create a new project in Xcode and name it KitchenTimer. Right-click the Classes folder and choose Add New File. Select AppleScript class and click Next. Name the file Controller.applescript and save.