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: Darwin disk I/O - better interactive response



nigh on 2001.01.27 1:33 AM, strobe anarkhos at email@hidden wrote:

>> You still need application interaction when displaying a menu so that menu
>> items can be activated/deactivated before display. I guess this could be
>> addressed by having the application push changes to the menu manager when the
>> state of an item changes (the reverse of what we have now).
>
> I had thought of this already and I still say the best method would be to have
> the window server manage and display menus.
>
> Indeed the menus would change only when the application tell it to, however
> this would have no disadvantage over the present system as far as I can see.
> The changes wouldn't occur any slower and the user is still aware when the
> Application is stalling by the color wheel.

Some applications do quite a bit of work to update the contents and enabled
states of menu items. Pushing from the app to the window server every time
the state changed could potentially be a performance hog and decrease UI
responsiveness.

The new Carbon Event Model was specifically designed to make menu updating
even more "lazy" than the old Mac OS event model to help responsiveness.
Events are sent to the application just before each menu and sub-menu is
displayed.

At the very least, pushing to the window server would have to be an option,
available for menus that do not require much work to update, not a
requirement.

-- Chris

An ascii character walks into a bar. Bartender asks, "What'll you
have?" Ascii character says, "Give me a double." Bartender asks,
"Having a bad day?" Ascii character says, "Yeah, I have a parity
error." Bartender says, "Hmmm. I thought you looked a bit off."


References: 
 >Re: Darwin disk I/O - better interactive response (From: strobe anarkhos <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.