Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4581640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:57:26+00:00 2026-05-21T20:57:26+00:00

NEW INFO: Something I just noticed (because this isn’t something I’d normally do), but

  • 0

NEW INFO: Something I just noticed (because this isn’t something I’d normally do), but this is a multi-window app, with a tool palette and an image window… the image window is the one with the problem — the tool window has NO problem with resizing, it is very fast and smooth. So it’s just other windows in the app; the image editing window, the image library window.

Something in my app structure may be wrong, but I don’t know what. The symptom is that resizing my window doesn’t go smoothly — instead, it hangs for a moment, then “jerks” to the next position. Instruments says that the time is being spent in mach_msg_trap. The window isn’t doing anything – I commented out everything in an attempt to narrow down what might be causing it, and now there isn’t even a drawrect of mine going on (though the window is of course rendering its title bar and borders, etc.) So this empty window, with zero work to do, is just slow as mud.

I’ve googled like crazy, I’ve read tons of docs on runloops and windows and views, and I can’t find even a hint of what might cause this.

I’m seeing this problem under 10.5.8, xcode 3.1.3, gcc 4.0 in an 8-core machine with 8 gb of ram, lots free, and plenty of free disk space. I see the same behavior on a dual core macbook pro/2GB and a dual-core macbook/2GB, all running 10.5.8.

When all the code is in place, everything in my app works, but is compromised by the very slow update rate I’m seeing. cpu utilization isn’t very high, so there’s a lot more time available for display, it just isn’t being used.

With all my display code commented out (literally… top to bottom, no drawrect, no view code, so the app literally is doing nothing) the jerkyness is the same, but cpu utilization is almost zero. It’s like it isn’t calling the windows drawrect often enough. But I can’t find any reason why it would fail to do so.

…and by “jerky”, I mean that as I drag the little resize widget at the bottom right of the window at a moderate or even slow speed, the frame stays where it is, then “snaps” a huge distance to catch up with where the mouse has gotten to, then repeats.

Add the code back in, and it acts the same. So it’s not the drawing code. My instinct says is a structural problem — something done wrong in IB, or in how I set up the views, etc. But I can’t find anything I’m supposed to do as a matter of “this has to be done to make resize/redraw response or runloop response snappy” in any of the docs or online hints.

There’s a custom view, dragged from IB’s palette of such things, in the window. It’s set to resize automatically with the window size. And it does. But it follows the window perfectly, which is to say, jerkily. drawrect or no drawrect.

Any real cocoa experts have any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:57:27+00:00Added an answer on May 21, 2026 at 8:57 pm

    By adding an automatically generated drawing proxy to ensure the image to be drawn is never larger than the screen it is on, I’ve eliminated visible evidence of the problem.

    1) The machine is fast enough to draw the screen-sized proxy quickly,

    2) the end-of-resize refresh of the tool window is successful because of that, and

    3) resizing (and drawing) is smooth because I’ve short-circuited the drawrect of the toolwidow when the image window is resizing.

    I’m going to move on and call this dealt with by this series of workarounds, though I still think there’s clearly an underlying OS or structure issue somewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question concerns generics and types as well as datatables. The following snippet is
I want to create something like a scratch with 3 options. First website sends
I'm playing around with this idea where i was saving logs in a LOGS
I am trying to do a simple extraction, but I keep ending up with
In my database, I have the following entry id | name | info 1
I am working on setting up an instance of Mango Blog on an Ubuntu
I have a simple MVC 3 application. I want the site to automatically redirect
I am trying to read a text file using Dynamics AX. However, the following
Lots of websites use class names like floatleft , clearfloat , alignright , small
hope someone can help. I appreciate there are a few questions that are similar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.