Location of sharedConnectionList?


Can you explain why you put the sharedConnectionList array in BNRConnection instead of BNRFeedStore? To my mind, if the store creates the connections, it should maintain the array. Using “static” inside the BNRConnection class to hold an array of objects of that class seems wrong to me. Thanks.


Ah, nevermind. If the array was in the store, it would have to have a clean-up method to check objects for nil and remove them, whereas the array can be trimmed dynamically by object reference when it’s in the class. I knew there must be a reason! :slight_smile:


Yup, that’s why. :slight_smile: