Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Sheet Notifications

NSWindow offers a set of notifications related to sheets, which it broadcasts on occurrences of a sheet opening or closing. Each notification is matched to a delegate method, so an NSWindow’s delegate is automatically registered for all notifications that it implements methods for.

NSWindowWillBeginSheetNotification is sent before a sheet is presented on a window and NSWindowDidEndSheetNotification after it is dismissed.

A window delegate should implement the following methods to receive the appropriate sheet notification:

It is important to note that a window’s delegate is not the same as the modal delegate specified as a parameter in the NSBegin...Alert calls. The modal delegate passed into the NSBegin...Alert calls is a delegate relationship that exists only until the sheet is dismissed.



< Previous PageNext Page > Hide TOC


Last updated: 2006-09-05




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice