Re: bound tableview partly redrawing over covering custom view during resize
Re: bound tableview partly redrawing over covering custom view during resize
- Subject: Re: bound tableview partly redrawing over covering custom view during resize
- From: "I. Savant" <email@hidden>
- Date: Tue, 7 Nov 2006 09:35:58 -0500
Thomas:
Search the list archives for "overlapping views" -- this should
not be done as 'strange errors' can (and often do) occur. The usual
solution is to make your view a subview (so the drawing is done in
order, according to the view hierarchy).
In this case, however, it'd probably be easier to put your
'overlay' view in a borderless window. That way your window (with
your view) can follow the main window around any time it moves,
resizes, etc. and will get drawn properly.
--
I.S.
On Nov 7, 2006, at 4:23 AM, Thomas Bauer wrote:
Dear list,
I am using a custom NSView that sits transparent above a
NSTableView and should cover it transparently.
The content of the TableView is supplied by an NSArrayController
which is bound to the TableView.
Everything works well, only duing a resize of the window (causing a
resizing of the NSTableView and the custom view)
the NSTableView updates and redraws its content after my custom
view leaving parts of the NSTableView uncovered (although
my custom view lies above it and should be redrawn).
(This does only happen if the ArrayController actually has content
to show, it does NOT happen if the table is empty).
Implementing:
- (void)viewDidEndLiveResize;
{
[self display];
}
in my view-class fixes the final result. But still during resizing
itself all kind of stange drawing quirks happens.
Is it wrong to assume that the drawing of views above other views
should be called automatically?
Is it different if binding is involved?
What would be the correct way to get my custom view to be the last
to be drawn or to be redrawn when the table updates?
thanks and cheers
Thomas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden