Is there a node class, such as NSNode or similar in objective-c, or should I roll my own? Searching doesn't seem to turn up anything.
Something simple with add/remove nodes/children, etc.
I think you are looking for CFTree. It does not have a corresponding NS wrapper, but it provides the operations that you are looking for: adding other CFTree instances as children, iterating over siblings, associating your own data with a tree node, and so on. Becoming comfortable with Core Foundation programming takes some time, but it is usually better than rolling your own.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With