Key Value Coding notifications vrs NSNotificationCenter
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.