-
Notifications
You must be signed in to change notification settings - Fork 590
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
Questions about get block strong layout #15
Comments
Yes
Yup cc @Gricha |
Hey! Sorry for late reply. Yeah it's exactly like that - we are faking objects that would otherwise be captured by block and we try to figure out which one the block will hold strongly. The way we do it is by using dispose helper which will take care of sending release message to objects it captured strongly. Please let us know if you have any more questions. |
Thanks for ur response, that helps a lot 👍 |
Hi, currently I am reading source code of this lib. But some code in
FBBlockStrongLayout.m
really confuses me. How does this lib figure out which variable block can retain.These lines of code are copied from
_GetBlockStrongLayout
function inFBBlockStrongLayout.m
I'm quite confused about the dispose_helper here. Does the
dispose_helper
dealloc the objects that block retains according to their memory address? So we can fake an array of objects and use dispose_helper to dealloc our objects, and then we can find out which object of the array is not existed. So we can get indexed and retrieve all the objects which block has retained.Thanks for your reading, and I really wanna know how this lib works. 😄
The text was updated successfully, but these errors were encountered: