Re: a Weird visibleRect
Re: a Weird visibleRect
- Subject: Re: a Weird visibleRect
- From: Norio <email@hidden>
- Date: Fri, 23 May 2008 23:06:29 +0900
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 visible.
When user clicks the button, the view becomes visible and is supposed to
show the end of its document view. The clip view of the view surely becomes
visible and its drawRect works fine. However, the document view (matrix)
doesn't show, this is, its cells don't show.
For debugging this problem, I prepared two more buttons. One shows and
hides (toggle) the view which has the NSScrollView, the other scrolls up and
down (toggle). After coming the phenomenon, when pressed the button to hide
the view then press the scroll up button. And pressed the Show/Hide button
to show the view again, the NSScrollView surely scrolled up as I expected.
Next, pressed Hide button and scroll down button and then Show button. The
view showed the end of cell what I expected.
So I put a log code before and after super drawRect: in the matrix's
drawRect.
The result was what I told in early message. The "before" log showed 300,0
of its visibleRect.origin, for instance, the "after" log showed 0,0. So I
doubted it was why the matrix didn't draw itself and want to know what makes
the origin of visibleRect to zero point.
I wish I could explain clearer.
Thank you,
norio
2008/5/23 Graham Cox <email@hidden>:
>
> 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 connected to an actual description of the
> problem.
>
> I realise you're not a native speaker of English but unfortunately your
> posting doesn't make any sense so far. *What is the problem?*
>
> G.
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden