• 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: Multiple dataSource's for NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Multiple dataSource's for NSTableView?
      • From: Frank Midgley <email@hidden>
References: 
 >Multiple dataSource's for NSTableView? (From: Chuck Soper <email@hidden>)

  • Prev by Date: Re: Why is the list so slow?
  • Next by Date: Re: Why is the list so slow?
  • Previous by thread: Multiple dataSource's for NSTableView?
  • Next by thread: Re: Multiple dataSource's for NSTableView?
  • Index(es):
    • Date
    • Thread