Re: Using afterDelay: ?
Re: Using afterDelay: ?
- Subject: Re: Using afterDelay: ?
- From: David Remahl <email@hidden>
- Date: Wed, 26 Jun 2002 02:02:13 +0200
You got the syntaxs slightly wrong...-performSelector:withObject:afterDelay:
is a category on NSObject. It is used like this:
[suStatusSheet performSelector:@selector(orderOut:) withObject:nil
afterDelay:3.0];
/ Rgds David
PS. Please do not cross-post...DS.
>
Hi i have a status-sheet that i need to slow down a little before
>
closing!
>
I have a method that gets some data, and while its getting this it
>
displays a status-sheet (a simple sheet with a progress-indicator like
>
in DiscCopy), but this sometimes goes to fast and i want to set a delay
>
time for it, so it doesn't look bad!! I think there4s some other way of
>
setting a minimum time for an action, but until now i have only found
>
afterDelay: ! But even this i cant get to wait! heres what i4m writing:
>
>
[[suStatusSheet orderOut:NULL]afterDelay:3];
>
>
This does4nt work!
>
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!??!
>
>
Could somebody help wither with this method or give me another pointer
>
on setting a minimum time for something currently running!
>
>
TIA
>
>
Mamdouh
>
Student/Programmer
>
Denmark
_______________________________________________
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.