• 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: Table Views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table Views


  • Subject: Re: Table Views
  • From: "Mohammad F. Haque" <email@hidden>
  • Date: Sun, 3 Mar 2002 20:28:59 -0500

Since we're talking about table view. I have a main window that contains a drawer. the drawer contains a table view with couple of columns. on the main window i have a button that toggles the drawer, also on the main window i have a submit button that adds data to the table view. when i toggle the drawer, it comes out blank. but when the drawer is out and i hit submit the previous data and the new data appears. how do i get the table view to load any provious data when i just toggle it.

On Sunday, March 3, 2002, at 03:20 PM, Sam Goldman wrote:

Not the delegate, but the dataSource. The dataSource implements methods that
provide the table view with its data. I set mine up to be a dictinary of
arrays, one key for each column and then to add a row I add an object to
each array. To delete a row I take away the object.

There is a programming topic about table views in the documentation that is
quite clear.

- Sam

P.S. Remember to use the reloadData method!

On 3/3/02 12:12 PM, "Adam Atlas" <email@hidden> wrote:

Are there methods to add and remove rows from an NSTableView, or does
this have to be done through a delegate?

--
Adam Atlas
Atomm Software
http://www.atommic.com
_______________________________________________
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.

--
Windows is a 32-bit patch to a 16-bit shell for an 8-bit operating system
written for a 4-bit processor by a 2-bit company without 1 bit of sense.
_______________________________________________
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.

References: 
 >Re: Table Views (From: Sam Goldman <email@hidden>)

  • Prev by Date: Re: The SampleCMPlugin example
  • Next by Date: Re: Table Views
  • Previous by thread: Re: Table Views
  • Next by thread: Re: Table Views
  • Index(es):
    • Date
    • Thread