Re: Weird visibleRect

2008-05-23 Thread Graham Cox
On 23 May 2008, at 11:04 pm, Norio wrote: Hi, What cases make visibleRect.origin to be NSZeroPoint? The common case when your view's top,left (or bottom, left if unflipped) corner is visible. Did you expect something else? What? G. ___

a Weird visibleRect

2008-05-23 Thread Norio
Hi, Sorry for the previous incomplete message. By the way, what I want to know is: What cases make visibleRect.origin to be NSZeroPoint? Since my matrix view didn't draw its cells, I put a log code before and after its super view's drawRect to show the visible rectangle like following:

Re: a Weird visibleRect

2008-05-23 Thread norio
Let me correct some of the previous. The bound rectangle of the view contains the visibleRect. And argument was also the same as the visibleRect. The matrix was on a clip view and the clip view was on a scrollview. And the scrollview is usually hidden when the window where the scroll view

Re: a Weird visibleRect

2008-05-23 Thread Norio
FYI, When the scroll view doesn't need to scroll at all, the documentView is shown, this is, its cells are visible. 2008/5/23 norio [EMAIL PROTECTED]: Let me correct some of the previous. The bound rectangle of the view contains the visibleRect. And argument was also the same as the