• 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
NSTableView Loading Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView Loading Question


  • Subject: NSTableView Loading Question
  • From: Donald Klett <email@hidden>
  • Date: Tue, 04 May 2010 09:45:48 -0400

I want to make sure I am on the right track regarding the NSTableView class.

In IB, I set the dataSource pointer to my object definition.

Assuming the initial content of the table view is available, the table view will
call the numberOfRowsInTableView method and since the return value is > 0, the
objectValueForTableColumn method will be called that number of times to populate the table.

If the inital content is nothing, then I assume one has to call the reloadData
method to cause the table to add entries as they become available.

But this seems inefficient, since a call to reloadData reloads the entire table.
Is there another route to take that I have not found?

If I am on the wrong track here, please let me know. Thanks.

Cheers, Don Klett
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView Loading Question
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: NSPrintOperation Fails to Auto-Paginate?
  • Next by Date: Re: NSTableView Loading Question
  • Previous by thread: Re: Custom view as a menu item
  • Next by thread: Re: NSTableView Loading Question
  • Index(es):
    • Date
    • Thread