Re: Using Bindings with Distrubuted Objects
Re: Using Bindings with Distrubuted Objects
- Subject: Re: Using Bindings with Distrubuted Objects
- From: Chris Kane <email@hidden>
- Date: Thu, 16 Jun 2005 08:44:51 -0700
Well, sure, if you write some nasty hacks you might get it to work. But (void *) parameters are not codeable over D.O. so the standard methods for KVO don't work as they are. We don't expect or necessarily want general developers to be doing nasty hacks -- if you have to do that, then things aren't compatible as they stand now. A different set of methods used by KVO could be created which would work.
As for performance, if you're staying in the same task, you're probably fine. But KVO/KVC likes to look up IMP pointers and cache them, among other things, so it may do some things that wouldn't work well across processes or machines. It's not a question of being slow, but possibly just not working at all.
Chris
On Jun 16, 2005, at 7:33 AM, Georg Tuparev wrote:
Chris,
I do not completely follow. Last year when we were working on a large porting project for a client of us we had to use DO, but we wanted also to use binding. I wrote some very nasty hacks (and had to poseAs few times), but i managed it so far that the bindings start working reasonably well over DO. My solution was far from universal, but based on my experience with the ObjC version of EOF (I had a framework similar to the bindings - just 10 years earlier - around MiscKit times if you still remember ;-) an universal implementation should be possible.
And I do not see why performance will be of a concern if DO is used to chat between different threads of the same task. Of course I might be wrong, but at least I did not observe any noticeable slowdown with our implementation. We also filed several radars on this subject...
cheers
gt
On Jun 15, 2005, at 8:25 PM, Chris Kane wrote:
Bindings, KVO, and KVC are incompatible with Distributed Objects.
Cocoa Bindings is not supported over D.O. to proxy objects in 10.3 and 10.4. The (void *) context parameter to the addObserver:... method will prevent it from ever working as it is, not to mention certain performance things that I believe Bindings/KVO/KVC does may also get in the way.
Chris Kane
Cocoa Frameworks, Apple
Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden