FROM : Uli Kusterer
DATE : Wed Aug 16 17:44:30 2006
Am 16.08.2006 um 16:17 schrieb Jerrod Fowkes:
> however each of the views' rect in their respective drawRect does
> not correspond to the rect that it was initialized with. Which is a
> problem, because they keep drawing over the first subView.
The rect you get to drawRect: is the area of your view that needs
updating (in your view's coordinate system). The actual rect of the
view must be obtained via the bounds and frame methods. It might help
if you had another look at the docs to make sure you didn't miss
other similar details.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
DATE : Wed Aug 16 17:44:30 2006
Am 16.08.2006 um 16:17 schrieb Jerrod Fowkes:
> however each of the views' rect in their respective drawRect does
> not correspond to the rect that it was initialized with. Which is a
> problem, because they keep drawing over the first subView.
The rect you get to drawRect: is the area of your view that needs
updating (in your view's coordinate system). The actual rect of the
view must be obtained via the bounds and frame methods. It might help
if you had another look at the docs to make sure you didn't miss
other similar details.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
| Related mails | Author | Date |
|---|---|---|
| Jerrod Fowkes | Aug 15, 21:55 | |
| I. Savant | Aug 15, 23:19 | |
| Erik Buck | Aug 16, 01:44 | |
| Jerrod Fowkes | Aug 16, 14:58 | |
| I. Savant | Aug 16, 15:01 | |
| Jerrod Fowkes | Aug 16, 16:17 | |
| Uli Kusterer | Aug 16, 17:44 |






Cocoa mail archive

