NSSavePanel with a Sheet, strange callBack definition
NSSavePanel with a Sheet, strange callBack definition
- Subject: NSSavePanel with a Sheet, strange callBack definition
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 8 Jun 2001 17:30:44 +0200
From the NSSavePanel Header:
/*
** Present a sheet savePanel on the given window. When the modal
session is
** ended, the didEndSelector will be invoked. The didEndSelector method
should
** have the following signature:
** - (void)savePanelDidEnd:(NSWindow *)sheet returnCode:(int)returnCode
contextInfo:(void *)contextInfo;
**
*/
Where am I supposed to get the information chosen by the user ?
[sheet fileName] ?
So why is it a (NSWindow *) ?
In NSOpenPanel.h, the callback is the following one:
- (void)openPanelDidEnd:(NSOpenPanel *)sheet returnCode:(int)returnCode
contextInfo:(void *)contextInfo;
sheet is a NSOpenPanel *