ddeville/DDPageControl

A couple of questions about some code

pixelfreak opened this issue · 2 comments

Hello,

I am trying to understand some of the code in DDPageControl. Could you clarify the following:

  1. What is accomplished by this? Seems redundant
// correct the bounds accordingly
self.bounds = self.bounds
  1. In setFrame: and setBounds: Why is bounds assigned to super's bounds, not self?
super.bounds = aBounds;

Thanks!

Ignore #2, it makes sense now, you'll get infinite loop if you do self.bounds.

What about #1?

Nvm, I see now that #1 is done to trigger new size calculation (via the setter). It's a bit indirect, but it works I guess.