What is the right way to tell when NSArrayController finishes loading its content from persistent storage?

What is the best way to find out when my array controller bound to my main data store loads its contents?

I have several methods (i.e. awakeFromNib) that rely on an array controller that has its content, but most of the time the array controller does not yet have its contents when awakeFromNib is called on this object.

I want to postpone my actions until I find out that the controller has all its contents.

+3
source share
2 answers

-windowDidLoad , , -awakeFromNib, , , .

, , , , , .. , , , Core Data , , , . , , , , .

, , , init, awakeFromNib, yyyWillLoad xxxDidLoad, , .

+3
+1

Source: https://habr.com/ru/post/1709328/


All Articles