Re: Table view - can't seem to communicate
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