• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using afterDelay: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: Using afterDelay: ? (From: Carl Norum <email@hidden>)

  • Prev by Date: Re: NSMutableArray: where is addObjectIfAbsent:?
  • Next by Date: Re: NSTableView philosophy question.. (MVC Pattern) where to put the dataSource delegate?
  • Previous by thread: Re: Using afterDelay: ?
  • Next by thread: NSMutableArray: where is addObjectIfAbsent:?
  • Index(es):
    • Date
    • Thread