swift - How to add a separator line after specific item in NSTableView (Cocoa/OS X) -


i'm building program gets weather forecasts met office using datapoint api. gives me forecast data 5 days future, 8 forecast points (every 3 hours) every day. displays them in nstableview, looks this:

27/3/2016 @ 0:00     6°c  ... 27/3/2016 @ 3:00     4°c  ... 27/3/2016 @ 6:00     4°c  ... 27/3/2016 @ 9:00     7°c  ... 27/3/2016 @ 12:00    8°c  ... 27/3/2016 @ 15:00    8°c  ... 27/3/2016 @ 18:00    8°c  ... 27/3/2016 @ 21:00    6°c  ... 28/3/2016 @ 0:00     6°c  ... 28/3/2016 @ 3:00     8°c  ... 28/3/2016 @ 6:00     8°c  ... ... 

however, when viewing 5 days of @ once, hard read day day (determine each day starts , ends without looking @ dates) , not user friendly in slightest. so, want add separator line (or separator cell, depending on how can done) after last forecast step of each day, separate string of data out recognisable days. want this:

27/3/2016 @ 0:00     6°c  ... 27/3/2016 @ 3:00     4°c  ... 27/3/2016 @ 6:00     4°c  ... 27/3/2016 @ 9:00     7°c  ... 27/3/2016 @ 12:00    8°c  ... 27/3/2016 @ 15:00    8°c  ... 27/3/2016 @ 18:00    8°c  ... 27/3/2016 @ 21:00    6°c  ... ------------------------------- 28/3/2016 @ 0:00     6°c  ... 28/3/2016 @ 3:00     8°c  ... 28/3/2016 @ 6:00     8°c  ... ... 

what best way can (in single nstableview, put separators @ select points in dataset)? thanks


Comments