• 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 view - can't seem to communicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table view - can't seem to communicate


  • Subject: Re: Table view - can't seem to communicate
  • From: Andy Lee <email@hidden>
  • Date: Sun, 4 May 2008 23:01:15 -0400

This question might be more suited for the cocoa-dev list. But anyway...

On May 4, 2008, at 10:31 PM, Lynn Barton wrote:
I am trying to make a simple application to collect some data into an array of records, and show those records in a table view in the main window. Record collecting seems to be working. Each record is store in an NSMutableDictionary, then each dictionary is added to an NSMutableArray.
The NSTableView was set up in IB, and connected to an outlet in my delegate. Methods for the number of records and for the value in each cell were created in the delegate.

These methods should be implemented in the table views *data source*, which may or may not be the same object as its delegate. Make sure the table view's datasource outlet points to the object that implements these methods.


--Andy

The setDelegate and reloadData methods of the table view were called. However, the table view remains blank. I think it is a problem with communication between the delegate and the table view.
Does anyone have some sample code that might help?
Lynn Barton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Table view - can't seem to communicate (From: Lynn Barton <email@hidden>)

  • Prev by Date: Table view - can't seem to communicate
  • Next by Date: How do I create a custom view, add it to my XIB file, and then create the subclass?
  • Previous by thread: Table view - can't seem to communicate
  • Next by thread: How do I create a custom view, add it to my XIB file, and then create the subclass?
  • Index(es):
    • Date
    • Thread