I have a window with an NSCollectionView created through the interface builder, an NSArrayController connected to the CoreData backing store Has happened, which is populated when firing an asynchronous request at launch. NSCollectionView binding for NSArrayController, etc. All seem to be in place; However, the window is displayed and is empty until the window is clicked and replaced again.
Here are some things without which I have made any significant changes (these are in the NSWindowController class)
1) Use KVO to monitor when the CoreData fetch is finished . At this point I have tried any and all of the following:
[collectionView setNeedsDisplay: Yes]; [[Self-window] SetViewinid display: Yes]; [[Self-window] Flushwindo Infeed]; 2) An NSProgressIndicator was added, hiding the NSCollectionView on the launch and then when the load was completed (again by monitoring the KVO), I hide the progress indicator and show the archive view. Anyone have a suggestion / clue on what I'm doing wrong?
Things seem to kick in gear.
Thanks to a friend who saw a link on Twitter, I have a solution Once called to call my KVO:
[Array Controller: Self]; Things seem to kick in the gear.
Comments
Post a Comment