Problem with distributed objects and NSArrayController
Problem with distributed objects and NSArrayController
- Subject: Problem with distributed objects and NSArrayController
- From: Rodrigo YaƱez <email@hidden>
- Date: Tue, 8 Mar 2005 20:49:34 -0600
im building a pretty standard server-client distributed application. i
just learned about the GUI bindings (using NSArrayController and so)
and found it very useful.
but im having problems using it over a distributed application, where
my model objects are in the server side, and the GUI and the
NSArrayController are in the client side.
what happens when the client application tries to load the .nib file where the
NSArrayController (and all the binding set up) is that it hangs for
some seconds,
and then i get this message in the Run Log window:
2005-03-08 20:28:06.979 Client[696] An uncaught exception was raised
2005-03-08 20:28:06.979 Client[696] connection timeout: did not receive reply
2005-03-08 20:28:06.979 Client[696] *** Uncaught exception:
<NSPortTimeoutException> connection timeout: did not receive reply
of course i could catch this exception, but what happens next is that
i have some corrupted memory (deallocated already free memory, the run
log says), giving me all kinds of troubles.
i dont know which call timed out - (dont know what message, couldnt
find out since (i guess)
the calls are made by the GUI and the NSArrayController, and dont have
access to that code, couldt find any good clues using the debugger)
if i put my model objects on the client side (just for testing)
together with the NSArrayController, it all works smoothly, but when i
put them on the server side, and get them using the server proxy, it
doesnt work with the NSArrayController. i can still access the objects
using "standard programming", standard accessors methods etc, but when
i try using them with the bindings-NSArrayController, it just doesnt
work.
so, could anyone give me some clues of what is wrong? what do i have
to change? do i have to change the model or maybe the way the
connection is made? or maybe if you know some working code similar to
what im
trying to do that i can see, please let me know.
if you need more information in order to help me, dont hesitate to ask me.
thanks.
_______________________________________________
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