Re: nsarraycontroller, bindings and big databases
Re: nsarraycontroller, bindings and big databases
- Subject: Re: nsarraycontroller, bindings and big databases
- From: "Joris Mans" <email@hidden>
- Date: Wed, 15 Feb 2006 09:09:01 +0100
Nobody ever encountered this problem?
Doesnt anybody use datasets bigger than the examples in the apple
documentation? :D
Is the only solution to load it all in mem?
Joris
----- Original Message -----
From: "Joris Mans" <email@hidden>
To: <email@hidden>
Sent: Monday, February 13, 2006 10:21 AM
Subject: nsarraycontroller, bindings and big databases
Hi
As a new cocoa/mac/obj.C developer i m just getting used to all these new
systems for me (coming from windows), but i have some questions.
I ve been using bindings (not always straightforward, but getting there :D),
but now i stumbled upon some issues.
The question is:
When using an NSArrayController to show data in an NSTableView it first
loads all data to show in the table in the array object in the controller,
so it shows it correctly and all works well, but how do i handle the fact
that my tableview should show the contents of lets say a very large database
containing thousands of entries. I dont want to load them all in memory in
my array at once, i want to update the array so it only loads a part of the
array around the current selection of the database. How do i do this in
cocoa with bindings? Do KVO on the selection of the arraycontroller and
update the array manually? Any other way?
tnx
Joris
_______________________________________________
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
_______________________________________________
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