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: Progress bar will not update.



Eric Schlegel wrote:


On Nov 26, 2007, at 8:34 PM, Julie Porter wrote:

Using sample code I got here a few weeks back, I re-wrote the progress dialog to use HIView calls. I get the dialog which shows up not highlighted. My calls to SetControl32BitValue are not causing any update to the bar in the dialog. It always looks un selected. No progress is indicated


If your nib-based dialog window uses compositing mode (which it probably does, since I think that's the default for new windows in IB now), you need to call HIWindowFlush after calling SetControl32BitValue. You don't need to call UpdateControls.

-eric


Thanks; that worked. I had to change the code slightly as updating after every scanline was rather slow. The old Quickdraw code updated the progress in blocks. Moving the HIWindowFlush outside the loop made for a faster file load. So that is working much better.

Next up is to convert the text entry dialogs to the nib based equivalent. I am currently reading up on how to replace the modal dialog calls with the more modern equivalents.

I probably should convert the code to the application event loop. I am a bit scared as I have a lot of processing happening adjusting the cursor during the null event process. This is a graphical editor, so the mouse needs to change shape when inside a region, The region is dynamic and when the mouse is over it the region can be clicked on and dragged. That code has worked well for years, so I really really do not want to re- write it as it looks to be several hundred lines for just the mouseover code.

-julie


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Progress bar will not update. (From: Julie Porter <email@hidden>)
 >Re: Progress bar will not update. (From: Eric Schlegel <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.