• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple hide window for x number of seconds...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Simple hide window for x number of seconds... (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Creating TIFF image with one strip only in Cocoa
  • Next by Date: Re: abstract class
  • Previous by thread: Re: Simple hide window for x number of seconds...
  • Next by thread: Creating TIFF image with one strip only in Cocoa
  • Index(es):
    • Date
    • Thread