Third time I ask - please help. How to trace visible change in a UIView (UIWebView)

2013-04-22 Thread Motti Shneor
Hello everyone. I asked this several times before, but no one gave any hint -- I'd like to know if anyone here has any clue, at least where to search for an answer. I need to observe the visible contents of a UIWebView dIsplayed in my iOS application. Each time the visible contents changes, I

Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)

2013-04-22 Thread Marco Tabini
On 2013-04-22, at 3:26 AM, Motti Shneor su...@bezeqint.net wrote: Hello everyone. I asked this several times before, but no one gave any hint -- I'd like to know if anyone here has any clue, at least where to search for an answer. I need to observe the visible contents of a UIWebView

Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)

2013-04-22 Thread Motti Shneor
Thanks Marco, Actually, we use the UIWebView not to display HTML contents, but because it so easily provide multi-document-format display. We will probably use it most for displaying PDF documents, Image files, Word documents, etc. Anyway, it will display a single, static, local document (not

Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)

2013-04-22 Thread Marco Tabini
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

NSPredicate and NSString with whitespace gives runtime error

2013-04-22 Thread Koen van der Drift
Is there a way I can use an NSPredicate to search an NSString that contains whitespaces (a sentence)? If I use this: NSPredicate *functionPredicate = [NSPredicate predicateWithFormat: @function CONTAINS[cd] %@, searchString]; I keep getting a runtime error:

Re: NSPredicate and NSString with whitespace gives runtime error

2013-04-22 Thread Ben Gollmer
On Apr 22, 2013, at 10:58 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Is there a way I can use an NSPredicate to search an NSString that contains whitespaces (a sentence)? If I use this: NSPredicate *functionPredicate = [NSPredicate predicateWithFormat: @function

Re: NSPredicate and NSString with whitespace gives runtime error

2013-04-22 Thread Koen van der Drift
On Apr 22, 2013, at 12:15 PM, Ben Gollmer bgoll...@tcnetworks.com wrote: The problem may be the use of the word function in your predicate string. That's it! I changed the name of the attribute to objectFunction, and it works as expected. Thanks, - Koen.

Re: Temporarily disabling autosave

2013-04-22 Thread Steve Mills
The out-of-whackishness that I was seeing was caused by our own portable code which stored the current doc dirty state in a global. AUGH!! Yes, a global. *I* didn't write it that way. :) Anyhoo, it was preventing the document from ever being dirtied again. So to sum up, upon pausing autosave I

Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)

2013-04-22 Thread Jens Alfke
On Apr 22, 2013, at 12:26 AM, Motti Shneor su...@bezeqint.net wrote: I already succeeded in capturing the contents of the view as an image-buffer (out of the CALAyer's context) and I can (brutally) solve my problem by setting up a timer that will sample the view's contents N times a second.

Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)

2013-04-22 Thread David Duncan
On Apr 22, 2013, at 10:30 AM, Jens Alfke j...@mooseyard.com wrote: On Apr 22, 2013, at 12:26 AM, Motti Shneor su...@bezeqint.net wrote: I already succeeded in capturing the contents of the view as an image-buffer (out of the CALAyer's context) and I can (brutally) solve my problem by

Re: Temporarily disabling autosave

2013-04-22 Thread Jerry Krinock
On 2013 Apr 22, at 09:43, Steve Mills smi...@makemusic.com wrote: So to sum up, upon pausing autosave which, per previous messages in this thread, I presume you do by sending the shared document controller -setAutosavingDelay:0.0. I'm surprised that this has any effect, because this method

Re: NSScrollView in NSTabView autolayout problem

2013-04-22 Thread kwic...@wichry.net
Hello My problems persist. So the NSScrolView as such work perfectly if they are in the active tab view. However if another tabview is active while window resizing the scrollviews on the inactive tabs get crazy and report NSClipVIew constraint with width 0. Best K On 19 Apr 2013, at 08:37,

Re: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)

2013-04-22 Thread Sandor Szatmari
I had thought about this too, but was afraid that -drawRect: would be called more often than the actual content of the view was being changed. If you could limit the calls within -drawRect: perhaps by setting a content did change flag in the subclass this might reduce the notifications to be

Re: Temporarily disabling autosave

2013-04-22 Thread Steve Mills
On Apr 22, 2013, at 17:57:41, Jerry Krinock je...@ieee.org wrote: which, per previous messages in this thread, I presume you do by sending the shared document controller -setAutosavingDelay:0.0. I'm surprised that this has any effect, because this method is Available in OS X v10.4 and