On 2006-02-22 08:35:06 +0100 Lloyd Dupont <[EMAIL PROTECTED]> 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
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep