• 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
Re: Is there a trick to NSTableViews?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Is there a trick to NSTableViews? (From: Dustin Robert Kick <email@hidden>)

  • Prev by Date: Re: How To Design A Queue of Messages? [warning: complete source]
  • Next by Date: Re: Is there a trick to NSTableViews?
  • Previous by thread: Is there a trick to NSTableViews?
  • Next by thread: Re: Is there a trick to NSTableViews?
  • Index(es):
    • Date
    • Thread