Re: Suppressing drawing
Re: Suppressing drawing
- Subject: Re: Suppressing drawing
- From: Gordon Apple <email@hidden>
- Date: Mon, 17 Dec 2007 11:31:55 -0600
It wasn't quite that easy, but that did eventually solve the jump
problem. Now, if I could just get the enclosed panes to position before
they redraw, maybe I could get rid of the redraw flash.
[window setFrame:NSMakeRect(frame.origin.x,
frameTop - newFrame.size.height,
newFrame.size.width, newFrame.size.height)
display:NO];
// Stack the panes in their proper locations
float currentY = totalHeight; // Start at the top and work down
for(NSView* view in array)
{
float height = [view frame].size.height;
currentY -= height;
[view setFrameOrigin:NSMakePoint(0.0, currentY)];
[view setNeedsDisplay:NO];
currentY -= ViewSpacing;
}
> On Dec 16, 2007, at 1:34 PM, Gordon Apple wrote:
>
>> // Set the window size and readjust location so title bar
>> stays put
>> [window setContentSize:NSMakeSize([contentView frame].size.width,
>> totalHeight)];
>> [window setFrameTopLeftPoint:frameTopLeftPoint];
>
>
> Replace those two calls with one to "-[NSWindow setFrame:display:]"
>
> j o a r
_______________________________________________
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