• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
What happens to the user dictionary when coalescing notifications in NSNotificationQueue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What happens to the user dictionary when coalescing notifications in NSNotificationQueue?


  • Subject: What happens to the user dictionary when coalescing notifications in NSNotificationQueue?
  • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
  • Date: Thu, 25 Sep 2008 16:07:20 -0400
  • Thread-topic: What happens to the user dictionary when coalescing notifications in NSNotificationQueue?

I've got a class that acts like a super-lightweight server within my program.  It listens for incoming packets of information, decodes them, and then tells the rest of my code that something changed.  So far, this sounds like a job for NSNotificationCenter, except that I'm getting the packets by UDP, and don't want to tell all the listeners about every single update that happens; it would be better to coalesce them into one notification and notify them when the run loop is idle.  OK, so this sounds perfect for NSNotificationQueue with (NSNoticationCoalescingOnName|NSNotificationCoalescingOnSender) as the options.  The problem is that I want to send all the data along in the user dictionary.  How is that coalesced?  Note that I want ALL the data I'm putting in the dictionary, not just the last user dict.

Thanks,
Cem Karan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: What happens to the user dictionary when coalescing notifications in NSNotificationQueue?
      • From: "Michael Ash" <email@hidden>
    • Re: What happens to the user dictionary when coalescing notifications in NSNotificationQueue?
      • From: Jason Coco <email@hidden>
  • Prev by Date: Re: Interface Building help with "box" labels
  • Next by Date: Re: What happens to the user dictionary when coalescing notifications in NSNotificationQueue?
  • Previous by thread: Re: Interface Building help with "box" labels
  • Next by thread: Re: What happens to the user dictionary when coalescing notifications in NSNotificationQueue?
  • Index(es):
    • Date
    • Thread