Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursively print superclass ivars for ivars commands. #10

Open
mrhappyasthma opened this issue Sep 27, 2018 · 0 comments
Open

Recursively print superclass ivars for ivars commands. #10

mrhappyasthma opened this issue Sep 27, 2018 · 0 comments

Comments

@mrhappyasthma
Copy link
Owner

This might become too spammy, so perhaps this should be optional or another command?

The class_copyIvarList docs mention explicitly "Any instance variables declared by superclasses are not included."

But this could be done with something like:

id object = <instance>;
while ([object != nil) {
  // Print out ivars and the name of the current class.
  // Print out newline.  

  object = [object superclass];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant