Mac layout issue on El Capitan

I have my app presenting a two-column text layout that spans multiple pages. I have it arranged as per Apple's documentation, with a single NSLayoutManager and multiple NSTextContainers/NSTextViews. All is working fine on Yosemite and previous versions. Now, with El Capitan, only the first page is being drawn.


Before, when calling addTextContainer to the NSLayoutManager, the manager would lay out all the text and create new text containers when needed to handle the multiple pages of text, and add these views to the scroll view. Now, it seems to, well, not do anything. I've traced the code and the functions are all being called, but the additional views aren't being added to the parent scroll view so nothing past the first page is being displayed.


Every change I make to try to debug this makes the view show nothing at all. Only the original code seems to work, and that only for one page.


WHAT DID APPLE CHANGE TO MAKE THIS FULLY WORKING CODE DIE????

No errors? Alerts?


Did you option-clean the build folder to flush cruft?

no errors, no alerts, the only difference is I upgraded to 10.11. The same app runs fine on 10.10. It seems I'm stuck in a chicken and egg situation. The view needs to be in the view hierarchy before the layout manager will layout the text, but the layout manager has to create the view first. I think that's how it works, or should say it works on Yosemite.

Mac layout issue on El Capitan
 
 
Q