• 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
NSTableView, NSArrayController, and delegates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView, NSArrayController, and delegates


  • Subject: NSTableView, NSArrayController, and delegates
  • From: Scott McMahan <email@hidden>
  • Date: Sat, 8 Oct 2005 13:46:03 -0700 (PDT)

I have a program that implements a number of
tableviews in an NSDocument setting.  Two of the
tableviews have content that is document independent;
only the selection changes from document to document.
I read the data in from a file in a delegate of my
MainMenu.nib and use this delegate.array as my content
array.  The NSArrayController and NSTableView are in
the document .nib file.  When I run my program, I get
this message:

2005-10-08 15:13:27.602 WarbandDef[2684] *** Illegal
NSTableView data source (<NSArrayController:
0x3dedf0>[object class: SkillTypeDef, number of
selected objects: 0]).  Must implement
numberOfRowsInTableView: and
tableView:objectValueForTableColumn:row:

The program does run fine and I can select Skill Type
values for different warbands.  I've been ignoring
this message while I fix other things since it seems
to work.  I'm now looking into this.  I can't
determine what, if anything, I can/should do to clean
this up.

Can I ignore this warning?  If not, why's it being
generated when NSArrayControllers handle these methods
behind the scene?




__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
 _______________________________________________
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

  • Prev by Date: Re: Programmatic -setHidden
  • Next by Date: [ANN] ObjectiveCLIPS 1.2 released
  • Previous by thread: The trouble all began with WSMethodInvocationSetParameters
  • Next by thread: [ANN] ObjectiveCLIPS 1.2 released
  • Index(es):
    • Date
    • Thread