FROM : Alastair Houghton
DATE : Thu Jan 03 19:35:41 2008
On 3 Jan 2008, at 18:33, David Harper wrote:
> That was exactly the assumption that caused the problems in the
> first place. The way I corrected it was by comparing the bounds
> rectangle of the scroll view's content view before and after the
> draw method was called. This gives the correct scroll offset.
Indeed, but you still haven't said what you hope to achieve by
obtaining the scroll offset. It seems likely that there will be
another way to do what you want that doesn't involve such a computation.
Kind regards,
Alastair.
--
http://alastairs-place.net
DATE : Thu Jan 03 19:35:41 2008
On 3 Jan 2008, at 18:33, David Harper wrote:
> That was exactly the assumption that caused the problems in the
> first place. The way I corrected it was by comparing the bounds
> rectangle of the scroll view's content view before and after the
> draw method was called. This gives the correct scroll offset.
Indeed, but you still haven't said what you hope to achieve by
obtaining the scroll offset. It seems likely that there will be
another way to do what you want that doesn't involve such a computation.
Kind regards,
Alastair.
--
http://alastairs-place.net
| Related mails | Author | Date |
|---|---|---|
| David Harper | Jan 3, 17:36 | |
| Alastair Houghton | Jan 3, 19:26 | |
| David Harper | Jan 3, 19:33 | |
| Alastair Houghton | Jan 3, 19:35 |






Cocoa mail archive

