Re: Multiple dataSource's for NSTableView?
Re: Multiple dataSource's for NSTableView?
- Subject: Re: Multiple dataSource's for NSTableView?
- From: Robert Kuilman <email@hidden>
- Date: Wed, 9 Jun 2004 01:19:54 +0200
Hey there,
What you could do, is maintain an array of dictionairies, and one
pointer, pointing to the Nth element in your array.
Upon changing the popup menu, change the pointer, reload your data, and
you'd be done.
Simple, and easy to implement :-)
HTH,
Robert K.
web:
http://halfduplex.net/
email: email@hidden
------------------------------------------------------------------------
---------------------
On Jun 9, 2004, at 12:43 AM, Chuck Soper wrote:
Hello,
I have an NSTableView and 1 to N arrays of dictionaries. The table
will only display one array of dictionaries at a given time. The user
can change which array is being displayed by using selecting a menu
(an NSPopUpButton instance).
To change the array that the table is displaying which of the
following is recommended:
1. Reload data and make sure that the NSTableDataSource protocol
methods access the correct array.
2. Create an object that conforms to the NSTableDataSource protocol
for each array and change the dataSource of the table when I need to
display a new table.
3. Something else?
Thanks,
Chuck
_______________________________________________
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.
_______________________________________________
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.