Re: NSTableView question!
Re: NSTableView question!
- Subject: Re: NSTableView question!
- From: zauhar <email@hidden>
- Date: Tue, 17 Jun 2003 08:54:42 -0400
Peter, it is up to your data source. If you really have 40 arrays in
your data model, I would just keep them. Assuming they all have the
same structure, you would simply need a single variable to retain the
id of the "active" array, and your tableView method would present data
from the active array. The buttons you have in mind would just have to
reassign the active array.
Maybe someone has a better suggestion.
Randy
On Tuesday, June 17, 2003, at 07:57 AM, Peter Karlsson wrote:
Dear list!
I have a NSTableView. And in the same NSTableView I want to show the
contents of 40 different NSMutable arrays. Not at the same time.
Example: I want to show the contents of array 4 when I press a button,
the contents of array 23 when I press another button and so on. But in
the same NSTableView.
Can I store everything in 1 array and just show the right rows when my
buttons is pressed or must I have 40 different arrays? Or maybe there
is a better way to solve this?
Peter
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.
Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104
Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web:
http://tonga.usip.edu/zauhar
Discussion after watching Disney's "Lilo & Stitch":
DAD: "But why did the space aliens speak English, as opposed to French,
or Swahili? And why did the one alien speak English with an Eastern
European accent? I don't get it."
CATHERINE (age 7): "That's 'cause you don't have a good cartoon brain."
_______________________________________________
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.