🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by William E. Grosso Mon, 27 Jul 1992 20:08
ScollView Strangesness ?
#262
Author: William E. Grosso
Date: Mon, 27 Jul 1992 20:08
15 lines
801 bytes


I have a strange prboblem with a ScrollView. It seems to 
lose branches of the view hierarchy when scrolling 
(e.g. a subview and all it's descendants will occasionally
just diappear). Sometimes they reappear if I continue scrolling.

Has this happened to anybody else before ? Any clues as to what
is going wrong ?

Thanks,


Bill Grosso
Re: ScollView Strangesness ?
#264
Author: Ray Spalding
Date: Mon, 27 Jul 1992 21:47
30 lines
1725 bytes
In article <151l40INNn1m@agate.berkeley.edu> william@moica.berkeley.edu (William E. Grosso) writes:
>I have a strange prboblem with a ScrollView. It seems to 
>lose branches of the view hierarchy when scrolling 
>(e.g. a subview and all it's descendants will occasionally
>just diappear). Sometimes they reappear if I continue scrolling.
>
>Has this happened to anybody else before ? Any clues as to what
>is going wrong ?

Yes, this has happened to me.

When you scroll in a piece of a view, drawSelf:: normally is sent
only to the subviews that intersect the newly exposed portion.  If
you have overlapping views, like some shapes (each in a subview)
on a larger background subview, your background will sometimes get
drawSelf:: whereas not necessarily all your shapes will.  The drawing
of the background may then overlay some or all of the shapes.

One way to fix this is to set the proper clipping path before
displaying your background view.  Something like:

- drawSelf:(const NXRect *)rects :(int)rectCount
{
        if (rectCount == 1) NXRectClip(rects);
        else NXRectClipList(rects+1,2);

-- 
Ray Spalding, Office of Information Technology
Georgia Institute of Technology, Atlanta Georgia, 30332-0715
Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads