Bindings, "behind the scenes" theory...
Bindings, "behind the scenes" theory...
- Subject: Bindings, "behind the scenes" theory...
- From: Allan Odgaard <email@hidden>
- Date: Tue, 24 Feb 2004 10:50:22 +0100
I have been curious to how Apple actually handle the automatic sending
of notifications to observers in their binding system (since I would
like to experiment with similar features in a project of mine).
I have written down my thoughts on this (wiki) page and would be glad
if someone more knowledgable than me would contribute with anything
they may have to add:
http://cocoadev.com/index.pl?BindingsBehindTheScenes
A quick summary of the page is that they change the isa pointer of the
object being observed (this I know for a fact), store the original isa
pointer in a central location (they would need that to get to the old
isa when messages are sent to the object) together with which keys are
being observed (on a pr. object basis) and have objc_msgSend handle the
details about wether an object has a modificed isa-pointer and is being
observed for the key being set (which is the only solution I can think
of given the above).
--
Private Mails To Allan At Top-House Dot DK
http://www.diku.dk/hjemmesider/studerende/duff/
_______________________________________________
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.