Re: updating modal window
Re: updating modal window
- Subject: Re: updating modal window
- From: Bjoern Kriews <email@hidden>
- Date: Tue, 2 Mar 2004 20:52:17 +0100
On 02.03.2004, at 20:09, Chuck Soper wrote:
Hello,
I have a modal window (it has a sheet) that needs to have some
NSTextField instances updated. When there is no sheet and the window
is not modal I update the NSTextField instances via a timer. I hope to
update these fields while the window is modal via the same timer. Is
this possible?
I have searched the mamasam archives (after paying $30) and reviewed
some documentation.
http://developer.apple.com/documentation/Cocoa/Conceptual/WinPanel/
Concepts/UsingModalWindows.html#//apple_ref/doc/uid/20000223
You have to add your timer to another mode of NSRunLoop - take an
_exact_ look at the
documentation of the initializers for NSTimer, then see the NSRunLoop
documentation.
t42_timer = [[NSTimer timerWithTimeInterval: 1.0 target: self selector:
@selector(countDown:) userInfo: nil repeats: YES] retain];
[[NSRunLoop currentRunLoop] addTimer: t42_timer forMode:
NSDefaultRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer: t42_timer forMode:
NSModalPanelRunLoopMode];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.