 	let noteStartIndices: [Int]
 }
 
-class NotesTableDS: NSObject
+class NotesTableDS: NSObject, UITableViewDataSource
 {
 	// ATTRIBUTES	---------
 	
 	private static let NOTE_CELL_ID = "NoteCell"
 	private static let THREAD_CELL_ID = "ThreadCell"
 	private static let POST_CELL_ID = "PostCell"
+	
+	private weak var tableView: UITableView!
 	
 	// Path ids, ordered
 	private var pathIds = [String]()

		if self.pathIds != pathIds
		{
			self.pathIds = pathIds
			updateIndexStatus()
		}
	}
	

		}
		
		indexStatus = IndexStatus(rowCount: index, pathIndex: pathIndex, orderedNotes: orderedNotes, noteStartIndices: noteStartIndices)
		// Also updates the table contents
		tableView.reloadData()
	}
}
