Re: NSAlert with NSTimer
Subject : Re: NSAlert with NSTimer
From: rajesh <email@hidden >
Date: Tue, 9 Dec 2008 10:50:33 +0100
Delivered-to: email@hidden
Delivered-to: email@hidden
I did something like this , long time back
hope, this is close enough to your requirement or may be its a wrong
practice ( user discretion required :) )
-()runAlert
{
..// show modal window
NSTimer *myTimer = [[NSTimer scheduledTimerWithTimeInterval:someTime
target:self selector:@selector(killwindow:) userInfo:nil repeats:No];
}
-() killwindow:(NSTimer *) theTimer
{
//kill the window
}
if the user click on the alert window then "– invalidate" the myTimer
This worked for me
~Rajesh
On Dec 9, 2008, at 10:37 AM, Rashmi Vyshnavi wrote:
Hi,
I want to close a Modal NSAlertPanel after specific period of time
if user
does not click on any of the buttons. Is there a way to set up a
NSTimer to
close the Alert Panel after 10 secs.
--
Thanks..
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.