Re: Simple hide window for x number of seconds...
Re: Simple hide window for x number of seconds...
- Subject: Re: Simple hide window for x number of seconds...
- From: Tom Jones <email@hidden>
- Date: Thu, 24 May 2007 16:44:08 -0700
- Thread-topic: Simple hide window for x number of seconds...
This is great, thanks.
tom
On 5/24/07 4:28 PM, "Shawn Erickson" <email@hidden> wrote:
> On 5/24/07, Tom Jones <email@hidden> wrote:
>> Hello,
>> I'm brand new to Cocoa so I'm sorry for the stupid question...
>>
>> I would like to hide my main window of my "Cocoa Application" for let's say
>> 10 seconds. I can hide it with the [mainWindow orderOut:nil]; but how do I
>> so a delay for 10 seconds and I have the reopen [mainWindow
>> makeKeyAndOrderFront:nil];
>
> Consider the following...
>
> [mainWindow orderOut:self];
> [mainWindow performSelector:@selector(makeKeyAndOrderFront:)
> withObject:self afterDelay:10.0];
>
> -Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden