Re: distributed objects
Re: distributed objects
- Subject: Re: distributed objects
- From: Jens Bäckman <email@hidden>
- Date: Sat, 16 Nov 2002 00:53:10 +0100
On onsdag, nov 13, 2002, at 13:38 Europe/Stockholm, Joji Mori wrote:
I was just wondering if anyone could tell me the difference between
calling
serverObj = [connection rootProxy];
and
serverObj = [connection rootObject];
I'm not 100% sure if I'm correct since I have never used those API:s,
but... Calling the proxy would probably allow for a "late loading" of
the object, and therefore higher efficiency. Instead of creating the
object immediately and keep all of its resources alive, proxies can
load and unload stuff whenever they feel like it.
A good example of proxy objects would be images in a document. if you
are viewing page 42, there is no reward in having the huge image on
page 86 loaded. All calls to draw the image outside the visible area
are ignored. When that image really has to be drawn, it will be loaded
and drawn as usual. After a long time of inactivity, it can be unloaded
to free memory for other uses.
_______________________________________________
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.