Skip navigation.
 
mlUnable to coalesce notifications
FROM : Jonathan Fewtrell
DATE : Thu Nov 18 21:03:10 2004

I have a scrolling view and want to be notified when it has scrolled.
But I want to ignore the stream of notifications that is sent during
the scrolling process and only act on the last one. I thought that this
would work:

[[NSNotificationQueue defaultQueue] enqueueNotification:[NSNotification
notificationWithName:NSViewBoundsDidChangeNotification object:nil]
                                             postingStyle:NSPostWhenIdle];
                                             coalesceMask:NSNotificationCoalescingOnName
                                                 forModes:nil];

But I still receive the full stream of notifications instead of just
one. Any idea what I'm doing wrong?


       
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com

Related mailsAuthorDate
No related mails found.