Re: Using afterDelay: ?
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.