• 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: Carl Norum <email@hidden>
  • Date: Tue, 25 Jun 2002 18:07:14 -0600

On Tuesday, June 25, 2002, at 05:55 PM, Mamdouh 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:].

Heres the header method:
- (void)performSelector:(SEL)aSelector withObject:(id)anArgument afterDelay:(NSTimeInterval)delay

But i don4t know, or i cant seem to find out, how i use this with a orderOut: method!??!

[suStatusSheet performSelector:@selector(orderOut:) withObject:nil afterDelay:3];

You can only apply methods that actually are available to the object on which you are trying to perform them.

----
Carl J Norum
4th Year Electrical Engineering/Computer Science Student
University of Saskatchewan
Saskatoon, Canada
_______________________________________________
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.

  • Follow-Ups:
    • Re: Using afterDelay: ?
      • From: Ondra Cada <email@hidden>
References: 
 >Using afterDelay: ? (From: Mamdouh <email@hidden>)

  • Prev by Date: Re: Using afterDelay: ?
  • Next by Date: Re: NSFontManager changeFont not called
  • Previous by thread: Re: Using afterDelay: ?
  • Next by thread: Re: Using afterDelay: ?
  • Index(es):
    • Date
    • Thread