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

Fix for issue #6 - warnings generated when attempting to render while self.bounds is CGRectZero. #7

Merged
9 commits merged into from
Oct 5, 2013

Conversation

ghost
Copy link

@ghost ghost commented Oct 2, 2013

Trying to be smart about this by disabling rendering at the source, when the view is assigned a new frame or bounds, and being a bit more careful when this view moves to the superview.

Nicholas Levin added 2 commits October 3, 2013 00:55
…their origins do not match, but their sizes could both be CGSizeZero.
@ghost ghost assigned evadne Oct 2, 2013
@ghost
Copy link
Author

ghost commented Oct 2, 2013

Let me know what you think, when you have time.

Nicholas Levin added 7 commits October 3, 2013 11:10
…g from the set of subscribed views in -removeFromSuperview. Also added superview check in -subscribeViewWithBounds:
…superview and CGContexts ready to go at the beginning of -refresh. Per Apple's note in the documentation for NSParameterAssert, we do not assume that these are always disabled for all non-DEBUG builds.
…erview will be called when self.superview is assigned nil.
…'re initialized with -init (and it follows that -new works similarly).
@ghost
Copy link
Author

ghost commented Oct 5, 2013

@evadne has told me to "just merge it" and if there's anything wrong, she'll go to Singapore and kick my ass.

Sounds like a plan.

ghost pushed a commit that referenced this pull request Oct 5, 2013
Fix for issue #6 - warnings generated when attempting to render while self.bounds is CGRectZero.
@ghost ghost merged commit b606faa into develop Oct 5, 2013
@ghost ghost self-assigned this Oct 5, 2013
This pull request was closed.
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

Successfully merging this pull request may close these issues.

None yet

1 participant