April 2015
Intermediate to advanced
556 pages
17h 47m
English
Sheets are a common interface pattern in OS X for situations where you need to collect input from the user and you want to associate that input with a particular window. A common example of a sheet is the document save panel. Sheets are windows that are presented from another window. The sheet comes down over the window, blocking user input to the presenting window until it is dismissed. Typically, you will create a new window controller for each sheet.
NSWindow has several methods used to present and dismiss sheets. You call these methods on the window that is presenting the sheet. The sheet window itself is specified as a parameter.
func beginSheet(sheetWindow: NSWindow, completionHandler: ((NSModalResponse) ...
Read now
Unlock full access