Re: a Weird visibleRect

2008-05-23 Thread Norio
Sorry for my poor English. The window has a view object which has an NSScrollView as a member variable. A subclass of NSMatrix is its document view. The matrix has many rows and you can scroll it to its end by clicking a button. When the window opens, the view (which has an NSScrollView) is not vis

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

Re: a Weird visibleRect

2008-05-23 Thread Graham Cox
On 23 May 2008, at 11:28 pm, norio wrote: However, the trouble happened as I mentioned in the last message. Actually no, you didn't. You have not actually stated what the problem is that you are having. You have made several statements which appear to be observations, but they are not co

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 is

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: @interfa