Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
On Jan 4, 2013, at 8:00 PM, Graham Cox wrote: > > On 05/01/2013, at 1:08 PM, Andy Lee wrote: > >> Put this all together and clearly the document view's visibleRect does not >> include any of the area occupied by the scroll bars. >> >> But maybe I am answering the wrong question, in which case

Re: scroll bars and visible rect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 1:08 PM, Andy Lee wrote: > Put this all together and clearly the document view's visibleRect does not > include any of the area occupied by the scroll bars. > > But maybe I am answering the wrong question, in which case... never mind. I understood the question to mean what

Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
Oh, one factor I did not consider -- the user can choose different scroll bar visibility behavior in System Preferences: * "Automatically based on mouse or trackpad" * "When scrolling" * "Always" If certain users are seeing display errors and not others, it might be worth asking what their sett

Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
On Jan 4, 2013, at 4:04 PM, Graham Cox wrote: > > On 05/01/2013, at 12:28 AM, koko wrote: > >> Thanks, Graham. >> >> I have no control over "Basing the size of some content on the visible rect >> sounds like a bad idea" as that is what the boss wants. >> >> FYI, our model defines a bitmap o

Re: scroll bars and visible rect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 12:28 AM, koko wrote: > Thanks, Graham. > > I have no control over "Basing the size of some content on the visible rect > sounds like a bad idea" as that is what the boss wants. > > FYI, our model defines a bitmap of content and we use the visible rect to > clip this conten

Re: scroll bars and visible rect

2013-01-04 Thread Mike Abdullah
On 3 Jan 2013, at 17:54, koko wrote: > visibleRect > > Returns the visible region of the receiver, in its own coordinate space. > (read-only) > > @property(readonly) CGRect visibleRect > Discussion > > The visible region is the area not clipped by the containing scroll layer. > > > And I m

Re: scroll bars and visible rect

2013-01-03 Thread Graham Cox
You're confusing CAScrollLayer (Core Animation) with NSScrollView. I *think* that NSScrollVIew's visible rect changes when the scroll bars are shown/hidden. That would stand to reason. Basing the size of some content on the visible rect sounds like a bad idea - you might sometimes use this to d

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 6:23 PM, koko wrote: > I beg to differ with you all: (Snip) > > Declared In > > CAScrollLayer.h > What I wrote: > > > On Jan 3, 2013, at 11:07 AM, Kyle Sluder wrote: >> >> >> Wait hold on, you ARE talking about OS X. But you copied docs that are >> either from Core

Re: scroll bars and visible rect

2013-01-03 Thread koko
I beg to differ with you all: visibleRect Returns the visible region of the receiver, in its own coordinate space. (read-only) @property(readonly) CGRect visibleRect Discussion The visible region is the area not clipped by the containing scroll layer. Availability Available in Mac OS X v10.5

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 9:54 AM, koko wrote: > visibleRect > > Returns the visible region of the receiver, in its own coordinate space. > (read-only) > > @property(readonly) CGRect visibleRect > Discussion > > The visible region is the area not clipped by the containing scroll layer. > > > And I

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 9:54 AM, koko wrote: > visibleRect > > Returns the visible region of the receiver, in its own coordinate space. > (read-only) > > @property(readonly) CGRect visibleRect > Discussion > > The visible region is the area not clipped by the containing scroll layer. Well I'm gla

Re: scroll bars and visible rect

2013-01-03 Thread koko
visibleRect Returns the visible region of the receiver, in its own coordinate space. (read-only) @property(readonly) CGRect visibleRect Discussion The visible region is the area not clipped by the containing scroll layer. And I may have answered my question since it says the visible region is

Re: scroll bars and visible rect

2013-01-03 Thread Mike Abdullah
You need to be more specific. What precisely do you mean by "the visible rect"? On 2 Jan 2013, at 22:53, koko wrote: > Are scroll bars inside the visible rect or additive to the visible rect? > > I ask because we use the visible rect to set the size of a bitmap to display > and we are getting s

scroll bars and visible rect

2013-01-02 Thread koko
Are scroll bars inside the visible rect or additive to the visible rect? I ask because we use the visible rect to set the size of a bitmap to display and we are getting some strange behavior from some users and thought they may have scroll bars set to display when scrolling. -koko _