I am working on an app that managed recipes for electronic cigarette fluid (not really important, but hey...) and I have a question about how to get some info from the array controller handling the recipes
Each recipe is a managed object, and I want to populate two sets that contains the brand info and flavor of each ingredient for use in a combo box.
The problem is, when I try to get the arranged objects of the array controller (via an App Controller object I have set up with the array controller as an IBOutlet) in the init (and I tried awakeFromNib) method, the array controller does not return anything for the arrangedObjects method. It returns NULL if I try it in init and an empty array if I try it in the awakeFromNib method.
When is the array controller populated? How can I get this info?
Each recipe is a managed object, and I want to populate two sets that contains the brand info and flavor of each ingredient for use in a combo box.
The problem is, when I try to get the arranged objects of the array controller (via an App Controller object I have set up with the array controller as an IBOutlet) in the init (and I tried awakeFromNib) method, the array controller does not return anything for the arrangedObjects method. It returns NULL if I try it in init and an empty array if I try it in the awakeFromNib method.
When is the array controller populated? How can I get this info?