Re: [NTLK] override :close() method?

From: Laurent Daudelin (laurent_daudelin_at_fanniemae.com)
Date: Mon Jun 02 2003 - 08:25:24 PDT


On 02/06/03 11:16, "Tom McDougal" <tmcdougal_at_newted.org> wrote:

> Is it possible to override the :close method for a view? I was
> thinking something like this:
>
> close: func ()
> begin
> ...[do some stuff]...
> AddDelayedCall( func () inherited:?close(), nil );
> end,
>
> But I don't think 'inherited:? is going to work right since the
> statement is likely to be executed in a different context.
>
> By the way, if I ought to be submitting such questions in another
> forum, please redirect me.
>
> Thanks.
> -Tom
>
> P.S. Why do I want to do this? My bowling scores app doesn't save
> state between quits, and I want to display a dialog when the user
> taps on the close button giving the user a chance to reconsider.

Hmmmm, why a delayed call?

-Laurent.

-- 
===========================================================================
Laurent Daudelin                    Developer, Multifamily, ESO, Fannie Mae
mailto:Laurent_Daudelin_at_fanniemae.com                   Washington, DC, USA
************************* Usual disclaimers apply *************************
-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html
Official Newton FAQ: http://www.chuma.org/newton/faq/


This archive was generated by hypermail 2.1.5 : Fri Jun 06 2003 - 08:25:15 PDT