Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with NSBeginAlertSheet



I haven't used that function but my guess is that the didEndSelector
will get called when the modal sheet session ends, regardless of what
button the user push to do so.

Does the documentation say anything about the signatured that the two
methods should have? because for a normal sheet session, it says that
the delegate method should be in the form of:

- (void)sheetEnded:(NSWindow *)win returnCode:(int)retcode
contextInfo:(void *)ci

so maybe that's the kind of selector you should pass to the function...
and depending on the value of retcode you decide whether or not to do
something.

eZL




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.