Re: bindings when used with external datasources?
Re: bindings when used with external datasources?
- Subject: Re: bindings when used with external datasources?
- From: "Mark A. Stratman" <email@hidden>
- Date: Sat, 12 Jun 2004 14:43:30 -0500
In my opinion, bindings are the last thing you want to use for that
particular situation. It will prove to be more work and headaches than
it's worth. It sounds like you would have to subclass
NSArrayController in order to do what you're trying to do.
I would just create a regular controller as a subclass of NSObject,
make it the delegate and the datasource for the table view, and set up
all the methods to monitor changes to the tableview in the conventional
way.
You can also use notifications to have this controller notified when
the database changes so it can update the table view.
just my 0.02.
- Mark
On Jun 12, 2004, at 2:05 PM, Theodore Petrosky wrote:
I have been working with postgresql as a backend for a
project for sometime. I finally decided to start doing
the bindings examples and get a handle on key bindings
to see where I can use this 'new' method...
I am beginning to wonder if these bindings are that
important to me. Maybe I'm just missing the point but
I don't understand how to use them with my external
datasource.
As an example, if I have a tableView, it is populated
by querying the database (which creates the
datasource), I have to watch if a row is updated and
create the sql for that row to update the db. Keep in
mind that I have many users accessing this db at the
same time. When the db gets updated, postgresql sends
our a notification to all connected users that are
looking at this data to trigger the screen updata.
Concurrency is important to me.
So the question is.. am I missing something here? does
anyone have an example of using these key bindings
that is accessing an external database (or even a
conversation on how it would be great to use the key
bindings...)?
Thanks, I am a complete newbie with bindings and maybe
I am just missing some point.
Ted
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
_______________________________________________
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.
_______________________________________________
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.