Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bound tableview partly redrawing over covering custom view during resize



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:
http://lists.apple.com/mailman/options/cocoa-dev/idiotsavant2005% 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >bound tableview partly redrawing over covering custom view during resize (From: Thomas Bauer <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.