Re: NSAlert with NSTimer

2008-12-09 Thread Rashmi Vyshnavi
It worked after adding timer in NSModalPanelRunLoopMode.Thanks On Tue, Dec 9, 2008 at 3:46 PM, Sherm Pendley <[EMAIL PROTECTED]>wrote: > The +scheduledTimer* methods schedule the timer using the default runloop > mode. Try creating a timer without scheduling it, then adding it yourself to > the c

Re: NSAlert with NSTimer

2008-12-09 Thread Sherm Pendley
The +scheduledTimer* methods schedule the timer using the default runloop mode. Try creating a timer without scheduling it, then adding it yourself to the current runloop with NSRunLoop's -addTimer:forMode: instead, using the NSModalPanelRunLoopMode mode: myTimer = [NSTimer timerWithTim

Re: NSAlert with NSTimer

2008-12-09 Thread Rashmi Vyshnavi
I am using NSAlert. When runModal is called on the NSAlert's object, timer is not fired till the time i close the alert panel.. On Tue, Dec 9, 2008 at 3:20 PM, rajesh <[EMAIL PROTECTED]> wrote: > I did something like this , long time back > > hope, this is close enough to your requirement or may

Re: NSAlert with NSTimer

2008-12-09 Thread rajesh
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(