How can I implement a class / object that has a link to a bunch of id idle objects?
I need something similar to what UIControl / NSControl has: addTarget:(id)target action:(SEL)action ...; (in my case, I do not need part of UIControlEvents ). I want to use this target / action template (and preferably stay away from the delegate template), but for this I need to make sure that goals added to my object are not saved or loops can be saved.
I think that implementing my own array using malloc / free to make sure the goals are not saved will be one of the solutions, but all these troubles smell as if some solution had already been implemented. There is?
memory-management collections cocoa-touch cocoa
nacho4d Aug 13 2018-12-12T00: 00Z
source share