> On Sep 22, 2016, at 3:45 PM, Gabriel Zachmann <z...@tu-clausthal.de> wrote: > > I don't see why that should not be possible in Obj-C - I just would need a > mechanism to add tell the system the names / function pointers to be > registered as observers.
That’s more like the way NSNotificationCenter works — you specify the target and selector, which together act similarly to a function pointer. I’m not sure why, but KVO uses a single method to deliver all notifications. That’s just the way Apple designed it, and KVO is newer than NSNotificationCenter so they must have had a good reason for doing so. That means the only thing that can uniquely distinguish different KVO registrations is the ‘context’ value. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com