NSArrayController and dataSource causes errors
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