• 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
Table Issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Table Issue
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Cocoa-dev Digest, Vol 4, Issue 345
  • Next by Date: Retrieving URL from NSImage
  • Previous by thread: Re: Cocoa-dev Digest, Vol 4, Issue 345
  • Next by thread: Re: Table Issue
  • Index(es):
    • Date
    • Thread