• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Suppressing drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Suppressing drawing
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Debugging a crash with CIContext and drawImage
  • Next by Date: Re: CoreData huge memory usage - is this right ?
  • Previous by thread: Re: Suppressing drawing
  • Next by thread: Re: Suppressing drawing
  • Index(es):
    • Date
    • Thread