Re: Newbie needs help single array into many tableviews
Re: Newbie needs help single array into many tableviews
- Subject: Re: Newbie needs help single array into many tableviews
- From: Larry Fransson <email@hidden>
- Date: Sat, 23 Oct 2004 01:48:20 -0700
On Oct 23, 2004, at 00:49, Steve Gran wrote:
Let me give some more specifics of what the app is suppose to do. The
user enters in football team names (I'm talking about American
Football here) and other data (wins, points scored, etc.) into a
mutable array. But I want the teams to be correctly grouped (like the
four AFC East teams together in one tableview, the four AFC West teams
in another, etc.).
What is the right way to get this done? Can I have one array that
goes into many tableviews?
I don't think this can be easily done. At the very least, it would
require a lot of processing that would slow down the updating of the
table view. Note when you read the docs for the NSTableView data
source methods, they tell you that those methods need to be fairly
efficient because they are called frequently.
It would be much easier to use one array for each view. You only need
one data source (if you're not using bindings), but you could create a
data source for each view if you really want to.
Larry Fransson
Seattle, WA
_______________________________________________
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