Re: Using afterDelay: ?
Re: Using afterDelay: ?
- Subject: Re: Using afterDelay: ?
- From: Ondra Cada <email@hidden>
- Date: Wed, 26 Jun 2002 13:44:12 +0200
On Wednesday, June 26, 2002, at 02:07 , Carl Norum wrote:
[[suStatusSheet orderOut:NULL]afterDelay:3];
This does4nt work!
That's because it makes no sense - you can't apply afterDelay: to the
void result of
- [NSWindow orderOut:].
Actually, the general idea of "just send any message, and say it should be
after some delay" is rather sensible, though the order of methods would
have to be the opposite, like
[[suStatusSheet afterDelay:3] orderOut:NULL];
or more generally
[[anyobject afterDelay:delay] whateverMessageWithAnySetOfArguments];
Alas, Foundation does not support HOM, so you can't do it this intuitive
way (unless you implement it itself). There's a very nice HOM support in
the MPWFoundation, but -- unless I've overlooked something -- it does not
contain delayed messages (though you can add it quite easily, for
MPWFoundation is distributed as source).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.