Re: didEndShouldCloseSheet
Re: didEndShouldCloseSheet
On Sun, May 19, 2002 at 06:03:58PM +0900, Tomoo Kunikyo wrote:
>
Thank you Nicholas Riley for your kind answer.
>
>
In the Local Machine Zone, I have found "NSBeginAlertSheet" method . But
>
the contents is "Discussion forthcoming" and I could not understand.
>
The document may be old.
It probably is; try upgrading to the April 2002 development tools if
you want (although PB 2.0 is not localized into Japanese yet, if this
is a problem for you).
>
Where can I find "didEndShouldCloseSheet" method ?
Again, the method is 'didEndShouldCloseSheet:returnCode:contextInfo'.
It is a method, specified using its selector with @selector(...) in
the call to NSBeginAlertSheet. The name of the method does not
matter, only the signature (types and order of parameters).
>
In the Internet Zone, I also have found "NSBeginAlertSheet". In the
>
Discussion, "didEndSelector" or "didDismissSelector" defined as
>
"sheetDidEnd" or "sheetDidDismiss" is found but "didEndShouldCloseSheet"
>
is not found.
You can name it whatever you want. It happens that the example in the
documentation uses sheetDidEnd:returnCode:contextInfo:
sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
But you are welcome to call your method:
foo:(NSWindow *)foo bar:(int)bar baz:(void *)baz;
as long as the correct number of parameters, and their signatures
(NSWindow *, int, void *) exist as above.
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.