Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

hideafter: doesn't reset when a new hud is called #6

Open
mefistody opened this issue May 22, 2011 · 1 comment
Open

hideafter: doesn't reset when a new hud is called #6

mefistody opened this issue May 22, 2011 · 1 comment

Comments

@mefistody
Copy link

I am not sure if it's a bug or a feature, but I changed the hideAfter method with this:

  • (void)hideAfter:(NSTimeInterval)delay {
    [NSObject cancelPreviousPerformRequestsWithTarget:self
    selector:@selector(hide)
    object:nil];

    [self performSelector:@selector(hide) withObject:nil afterDelay:delay];
    }

This way, when a new hud is shown it will stay the time specified even though there was another hud showing up before.

@uranpro
Copy link

uranpro commented Aug 22, 2011

fixed in my commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants