OK!!!! Thanks Marco. Thad did the trick!!!

 As I was suspecting, my "Mac" mind was hiding the solution from me. I didn't 
guess that the UIWebView had its own internal UIScrollView to support all the 
navigation gestures (scroll, zoom, rotate, translate etc.) 

On the Mac, usually a view is usually just a view, and if you want to scroll 
it, you'd need to embed it into a scroll-view yourself, and manage the 
interaction.

I tried it now , and it works perfect for my needs. Also, I get a first 
delegate call "loaded" from the UIWebView itself, when the content is first 
rendered completely -- so I take a first snapshot there, and ignore any 
"scrolling" events beforehand. I also limit my snapshots to N times a second 
(in case I receive very frequent "scrolling" events) and this further provides 
the efficiency I need. 

I seem to have a loose end though --- when I examine the UIWebView's scrollView 
property, it initially has a non-nil delegate. I don't know if I should "pose" 
as delegate and after taking my snapshot, call the original delegate, or only 
set myself as a delegate instead of the original. Any ideas?


On 22 באפר 2013, at 16:08, Marco Tabini wrote:

> 
> On 2013-04-22, at 9:04 AM, Motti Shneor <su...@bezeqint.net> wrote:
> 
>> To be very precise --- I'd like to know how to be notified about ANY UIView 
>> visual change. It somehow seems very obvious to me that such "delegate call" 
>> must exist. Maybe I'm overlooking something very basic here.
> 
> I think I had completely misunderstood what you wanted to do! I think what 
> you want to do is interpose yourself as the delegate of the UIWebView's 
> UIScrollView instance (accessible through the -scrollview property); that 
> lets you track changes in scroll position, zoom level, etc. Is that what you 
> meant?
> 
> 
> —Mt.
> 

Motti Shneor, 
CEO,  suMac LTD.
Software Development for the Macintosh

Home/Office Address: 34 Emek-Ha-Ella St. Appt.1 Modiin, ISRAEL, 71723
Home/Office Tel/Fax: +972-8-9267730
Home eMail: motti.shn...@gmail.com Office eMail: su...@bezeqint.net
Mobile phone: +972-54-3136621
---
ceterum censeo microsoftiem delendam esse
---










_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to