Re: How do I implement a splash window
Re: How do I implement a splash window
- Subject: Re: How do I implement a splash window
- From: desktoast music productions <email@hidden>
- Date: Mon, 24 Apr 2006 09:41:12 +0200
> This is perfectly right, but...
>
> On 24.4.2006, at 2:47, PGM wrote:
>
>> splashTimer = [[NSTimer
>> scheduledTimerWithTimeInterval:interval
>> target:self
>> selector:@selector(hidePanel)
>> userInfo:nil
>> repeats: NO] retain];
>
> ... you can get the very same result with considerably less and
> simpler (and thus also less error-prone) code like
>
> [panel performSelector:@selector(orderOut:) withObject:self
> afterDelay:1.5];
>
> (Actually, I've integrated these services into my HOM libraries, so I
> just use "[[panel afterDelay:1.5] orderOut:self]", but that's another
> story :))
> ---
> Ondra Čada
> OCSoftware: email@hidden http://www.ocs.cz
> private email@hidden http://www.ocs.cz/oc
>
>
Thank your for the support. I've started out with a NSTimer driven splash.
Still struggling with a status line running on the splash image (see thread:
"Superimpose a NSTextField over NSImageView?") But the
performSelector:afterDelay method works more precisely (with less code).
Thanks a lot.
I also like the idea of letting the user choose whether he wants to be
presented a splash or not. Just what I - as a mac-user- would expect.
Thank you,
Peter
--
peter schwaiger
desktoast music productions
http://www.autlawmusic.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden