alexrozanski / PXSourceList

Source List control for the Mac
Other
638 stars 76 forks source link

isGroupAlwaysExpanded breaks until [reloadData] is called at least once #16

Open adamgit opened 13 years ago

adamgit commented 13 years ago

Everything works fine, no need for [reloadData] - no need for unnecessary references to the PXSourceList instance, if you create your list of Source Items during [init*].

EXCEPT ... if you return "TRUE" / "YES" from isGroupAlwaysExpanded, then the group shows up with "zero" items, and no expansion triangle.

Doing an extra [sourcelIst reloadData] during awakeFromNib worksaround the problem, but AFAICS it shouldn't be needed and this causes the data to get loaded twice, unnecessarily.