DO and Bindings
DO and Bindings
- Subject: DO and Bindings
- From: Yann Bizeul <email@hidden>
- Date: Fri, 9 Jul 2004 11:27:23 +0200
Hi list,
I did not find any help on the archive about the precise thing I'm
trying to do.
I'm writing an application that has a server part, and an "agent"
part, each agent running on the network can query the server to get
some informations.
Those informations are displayed in the agent into menus and table
view.
So I put in place DO to get objects from the server, this seem to work
fine, just having the traditional NSLog() SIGBUS, but that's ok.
What I'm doing with binding is : Set a tableview, bind its column to a
subclass of NSArrayController (ServersController) that contains
"Server" objects obtained via an NSConnection to the server process.
This one lets the user choose with which server he wants to work
This seem to work
I also have a NSArrayController (PhotographsController), with
"contentArray" bound to my ServersController's "selection" key
"photographs" (-(NSArray*)photographs in class Server returns an
NSArray of "Photographs" object).
Then I have a second tableview with its column bound to
PhotographsController's "name" key (Photograph class is KVC for "name"
key).
To describe the big picture, I just want, on each agent, to be able to
select a Server on the network, then update a list of Photographs
declared on this server.
Is it possible to do this with bindings ? When I run what I just
described, I get the list of servers, but If I clic on a server, I get
spinning wheel and have to force quit the agent.
Thanks for your help, I hope I'm clear enough with my poor english !
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
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.