Table Issue
Table Issue
- Subject: Table Issue
- From: Micha Fuhrmann <email@hidden>
- Date: Mon, 9 Apr 2007 17:34:16 +0200
Hi there,
'been a couple day now and need help.
Ive got a DataSource linked to a table view.
Using the following code does what I want, namely returning the right
nbr of rows for my Table view:
- (int)numberOfRowsInTableView:(NSTableView *)tableView
{
return [theTest count];
}
theTest being an NSMutableArray. All good. Now I'd like to use
multiple table with the same DataSource, so I've added the following
code:
- (int)numberOfRowsInTableView:(NSTableView *)tableView
{
if (tableView == artistTable)
{
return [theTest count];
}
}
I've also changed the .h file of my dataSource Class to add the outlet:
@interface InterfaceDataSource : NSObject
{
theTest *singleArtistsArray;
IBOutlet NSTableView *artistTable;
}
Last but not least I've connected the outlet to my dataSource
Instance in IB.
The result is that my table is filled only to its size and the scroll
bar isn't active (yes yes, I've checked unchecked everything in IB).
I'm stuck here, any idea anyone?
Micha
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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