RE: Table data not initializing
RE: Table data not initializing
- Subject: RE: Table data not initializing
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 26 Apr 2004 17:27:27 -0400
>
I'm sure this is just an IB wiring problem on my part, but I can't seem
>
to get a table view to ever call the following methods defined in my
>
nib file controller/datasource class.
>
>
- (int) numberOfRowsInTableView:(NSTableView *) tableView
>
- (id) tableView:(NSTableView *) inTableView
>
objectValueForTableColumn:(NSTableColumn *)
>
inTableColumn
>
row:(int) inRow
>
>
>
The nib file loads ok and the window containing the table appears on
>
screen, but at no point are either of the above methods called.
>
>
Here's how I have it wired up in IB
>
>
The "dataSource" outlet in the NSTableView of the window is wired to my
>
Controller/Datasource instance.
>
The "fileView" field in my Controller/Datasource instance is wired to
>
the NSTableView of the window.
I think you'll find that the dataSource outlet is not, in fact, connected.
The symptoms you report are quite consistent with the absence of a data
source. Either you didn't really connect the data source, or you didn't
save the nib after you did that.
Go into IB. Disconnect the dataSource outlet if it seems to be connected.
Then reconnect it. Then save the nib. Then run/debug your app.
Jonathan
_______________________________________________
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.