• 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
NSArrayController and dataSource causes errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController and dataSource causes errors


  • Subject: NSArrayController and dataSource causes errors
  • From: Mark Munz <email@hidden>
  • Date: Sun, 30 Jan 2005 11:35:04 -0600

I'm making progress on the understanding of NSArrayController, but still have a little confusion left.

If I set my NSArrayController subclass to be the tableview's dataSource (like the Bookmarks example) to support drag-n-drop, I get a console message:

*** Illegal NSTableView data source (<DNDFileArrayController: 0x552d60>[object class: NSMutableDictionary, number of selected objects: 0]). Must implement numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:

However, the Bookmarks example doesn't include these methods and doesn't get this console message. My subclass DNDFileArrayController is basically the same thing as the DNDArrayController (but uses NSFilenamesPboardType instead of NSURLPboardType).

The bookmarks example codes doesn't generate this, but my code does. I must be missing something here.

Mark Munz

_______________________________________________
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: NSTableView column index
  • Next by Date: Re: NSTableView column index
  • Previous by thread: Re: NSTableView column index
  • Next by thread: NSControl Subclass With Multiple NSCells
  • Index(es):
    • Date
    • Thread