Re: NSTableView question!
Re: NSTableView question!
- Subject: Re: NSTableView question!
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 17 Jun 2003 16:01:50 +0200
At 11:57 Uhr +0000 17.06.2003, Peter Karlsson wrote:
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?
Of course you can do that. use [myTableView reloadData] to cause the
table to reload its stuff, and simply add the needed intelligence to
your data source methods, so they return the proper item count.
However, you'll have to re-map the indices that you get from
NSTableView yourself and return the correct cell. I'm not sure
whether that'll be that easy.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.