Re: scroll bars and visible rect

2013-01-04 Thread Mike Abdullah
On 3 Jan 2013, at 17:54, koko k...@highrolls.net 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.

Re: scroll bars and visible rect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 12:28 AM, koko k...@highrolls.net 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

Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
On Jan 4, 2013, at 4:04 PM, Graham Cox graham@bigpond.com wrote: On 05/01/2013, at 12:28 AM, koko k...@highrolls.net 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

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 settings

Re: scroll bars and visible rect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 1:08 PM, Andy Lee ag...@mac.com 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

Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
On Jan 4, 2013, at 8:00 PM, Graham Cox graham@bigpond.com wrote: On 05/01/2013, at 1:08 PM, Andy Lee ag...@mac.com 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

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 some

Re: scroll bars and visible rect

2013-01-03 Thread koko
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

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 9:54 AM, koko k...@highrolls.net 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.

Re: scroll bars and visible rect

2013-01-03 Thread Kyle Sluder
On Jan 3, 2013, at 9:54 AM, koko k...@highrolls.net 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.

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 6:23 PM, koko k...@highrolls.net 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

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

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