Re: Is there a trick to NSTableViews?
Re: Is there a trick to NSTableViews?
- Subject: Re: Is there a trick to NSTableViews?
- From: Chris Hanson <email@hidden>
- Date: Mon, 12 Sep 2005 22:37:10 -0700
On Sep 12, 2005, at 9:52 PM, Dustin Robert Kick wrote:
@interface theDataSource : NSObject
{
NSMutableArray * items;
IBOutlet NSTableView * tableView;
}
@end
Here you've declared a class theDataSource (which should really begin
with a capital letter, but this is OK for now) with two instance
variables: items and tableView. You've declared that tableView is an
outlet that you'll wire up in Interface Builder. However, in your -
init method you never actually create the mutable array for items.
Assuming that everything is wired up properly, this will result in
your items instance variable being nil all the time, which will
result in nothing showing up in your interface.
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden