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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you are looking for
CFTree. It does not have a correspondingNSwrapper, but it provides the operations that you are looking for: adding otherCFTreeinstances 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.