• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie needs help single array into many tableviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Newbie needs help single array into many tableviews (From: Steve Gran <email@hidden>)

  • Prev by Date: Re: [REQUEST] Calling all Interface Builder Palettes
  • Next by Date: Preferences and Toolbars
  • Previous by thread: Newbie needs help single array into many tableviews
  • Next by thread: Preferences and Toolbars
  • Index(es):
    • Date
    • Thread