Re: NSSavePanel with a Sheet, strange callBack definition
Re: NSSavePanel with a Sheet, strange callBack definition
- Subject: Re: NSSavePanel with a Sheet, strange callBack definition
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 12 Jun 2001 11:41:48 +0200
On lundi, juin 11, 2001, at 09:44 PM, Enrique Zamudio wrote:
When it says that the didEndSelector has the following signature, it
means that the method you implement as the callback for the panel has
to be in that form (savePanelDidEnd:returnCode:contextInfo:). But it
doesn't have to be called that way. These callbacks are also valid:
- (void)sheetEnded:(NSWindow *)sheet rc:(int)returnCode
ci:(void *)contextInfo;
- (void)panelClosed:(NSWindow *)w retCode:(int)r context:(void *)ci;
The problem is in fact that there is a bug both in the public
NSSavePanel header and in the documentation.
The real CallBack definition template for the NSSavePanel is :
- (void)sheetEnded:(NSSavePanel *)sheet rc:(int)returnCode ci:(void
*)contextInfo;