[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSNotificationQueue HowTo
From: |
Chris Vetter |
Subject: |
Re: NSNotificationQueue HowTo |
Date: |
Wed, 22 Feb 2006 19:57:52 +0100 |
On 2006-02-22 08:35:06 +0100 Lloyd Dupont <lloyd@nova-mind.com> wrote:
[...]
Now I would like to be able to fire all notification waiting in the
queue:
how could one do that?
@implementation NSNotificationQueue (PendingNotifications)
- (void) fireAllPendingNotifications
{
NSRunLoop *runLoop = nil;
NSString *runLoopMode = nil;
runLoop = [NSRunLoop currentRunLoop];
runLoopMode = [runLoop currentMode];
if( nil == runLoopMode ) runLoopMode = NSDefaultRunLoopMode;
[runLoop limitDateForMode: runLoopMode];
}
@end
--
Chris