• 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
Key Value Coding notifications vrs NSNotificationCenter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Key Value Coding notifications vrs NSNotificationCenter


  • Subject: Key Value Coding notifications vrs NSNotificationCenter
  • From: Jesse Grosjean <email@hidden>
  • Date: Fri, 7 Nov 2003 08:38:05 -0500

With panther there are now two (maybe three if you count delegates) registration / notification mechanisms. There is the indirect NSNotificationCenter postNotification and the newer willChangeValueForKey and didChangeValueForKey methods that work with key value coding.

My question is when making changes to a model object are there any guidelines for deciding which of these mechanisms should be used? It seems to me like change notifications should probably be sent to both systems, but before I do that I'd love to here what others are doing. Also it would seem that if there was a way to automatically send key value coding notifications through the NSNotificationCenter that would solve the problem, but at the moment I don't see any way of doing that... am I missing something?

Thanks,
Jesse
_______________________________________________
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.

  • Prev by Date: Check for updates
  • Next by Date: Window with click-through areas
  • Previous by thread: Check for updates
  • Next by thread: Window with click-through areas
  • Index(es):
    • Date
    • Thread