Mailing Lists: Apple Mailing Lists

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

bound tableview partly redrawing over covering custom view during resize



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/email@hidden

This email sent to 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.